Highlight a div

27 views
Skip to first unread message

Deepak Singh

unread,
Feb 18, 2012, 1:23:32 PM2/18/12
to gwtquery
Hi,

I need to highlight a div for few seconds after a certain event. And when the div highlights, it should be visible to user on screen.
Highlighting should be animated.

How can i achieve this using GWTQuery ? 

Thanks
Deepak Singh

Deepak Singh

unread,
Feb 21, 2012, 1:02:42 PM2/21/12
to gwtquery
Any idea pls....
--
Deepak Singh

Julien Dramaix

unread,
Feb 22, 2012, 5:02:44 AM2/22/12
to gwtq...@googlegroups.com
you have to animate the background-color css property of the div.

$("#myDiv").as(Effects)
.animate("backgroundColor: 'yellow'", 100)
.delay(1000)
.animate("backgroundColor: '#fff'", 1000);

The example of the main page of GQuery project do something like that
: http://gwtquery.googlecode.com/svn/trunk/demos/HomePageSample/HomePageSample.html

> --
> You received this message because you are subscribed to the Google Groups
> "gwtquery" group.
> To post to this group, send email to gwtq...@googlegroups.com.
> To unsubscribe from this group, send email to
> gwtquery+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/gwtquery?hl=en.

Reply all
Reply to author
Forward
0 new messages