Dim p As Pane
p.Initialize("")
CSSUtils.SetBackgroundColor(p,fx.Colors.red)
Dim h As Int = 100dip
Dim w As Int = 100dip
Dim mw, mh As Float
mw = MainForm.RootPane.Width
mh = MainForm.RootPane.Height
MainForm.RootPane.AddNode(p, (mw/2)-(w/2), (mh/2)-(h/2), w, h)
Sleep(1000)
Dim h2 As Int = 300dip
Dim w2 As Int = 300dip
p.SetLayoutAnimated(1000,(mw/2)-(w2/2), (mh/2)-(h2/2), w2, h2)