Suppose you want a widget to slowly increase in size. You tie a transition to the "width" and "height" properties. Then you call myWidget.setSize("100px", "100px") in your code, and it will trigger your transition effect.
Hi Andrei,I will try to answer the best I can regarding to your questions....and most of all, regarding to want I have understood about CSS transition and animation....1 - Why do you need to activate it in your code?What I am looking for, for example, is to manipulate CSS transitions + animation such as "cool effects"... For example, I want to show a popup with a funny and cool effect (animation + transition) and I can not show this effect just with :hover...so I want to do it programatically (for example, when the user scroll at the top of the page, it will appear a slideshow trailer, and this "apparition" should be sexy thanks to CSS transition/animation)...
2 - Do you plan to do something else when the transition activates?If you are talking about something related to the widget's animation, not especially...I am just looking for the cool effect... And I am also asking about how to use these CSS transition, because, the only example I have seen is using :hover to activate the transition.So in a more general way, I am asking if there is alternative to activate these CSS transition without :hover. And, I am asking these question on the GWT forum, because, I just would like to see a simple example manipulating CSS 3 + GWT....Maybe I could study some existing lib like VISUAL FOX (http://code.google.com/p/visualfox-fx/)....Cheers,
Hello,I do not succeed to use CSS3 transition with GWT...I do not understand how to activate the transition without using :hover in the css file.W3C says that :The effect will start when the specified CSS property changes value. A typical CSS property change would be when a user mouse-over an element...So I have:focus{height: 100px;transition: all 0.3s ease-out;-webkit-transition: all 0.3s ease-out;}focus:hover{height: 200px;}This works, but I do not succeed to activate the transition using :/* ------------------------------------------------------------------------ */@UiHandler("focus") void mouse__Over(MouseOverEvent e)/* ------------------------------------------------------------------------ */{// TODO - WHICH CODE TO INSERT HERE TO ACTIVATE THE TRANSITION (on the focus panel) ?}If you could complete the TODO in order to activate the transition, it would help me...(I have tried focus.addStyleName(), focus.setHeight() but the transition does not appear !)Thanks you,
Hi,Thanks you for your help, I finally succeed to do my transitions and animations.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.