animate addstylename

8 views
Skip to first unread message

Segun Razaq Sobulo

unread,
Feb 15, 2015, 1:32:42 PM2/15/15
to gwtq...@googlegroups.com
I've got background images defined in css and applied on gwt widgets using addstylename(). Wondering whether addStyleName can be used with gwtquery to animate/transition background images.

E.g. 

//css
.bg1 
{
 background-image: ....
}

.bg2
{
background-image: ...
}

//gwt

FlowPanel f = new FlowPanel();
f.addStyleName("bg1") // applies first background
f.removeStyleName("bg1");
f.addStyleName("bg2") //applies second background

Essentially I'd like to have some sort of fade out-fade in effect when transitioning the background images on the panel.

Thanks,
Reply all
Reply to author
Forward
0 new messages