Glow animation for updated DOM elements...

43 views
Skip to first unread message

Kevin King

unread,
May 25, 2011, 10:03:47 AM5/25/11
to KnockoutJS
I've been asked to add a jQuery "glow" animation to my DOM elements
(labels, inputs, etc) when their values are changed via the
viewModel.

Is there something built into knockout that can do this for us
automatically?

Thanks!

rpn

unread,
May 25, 2011, 12:11:20 PM5/25/11
to knock...@googlegroups.com
Here is a quick sample of a "glow" binding using jQuery and jQuery UI (required to animate colors).

Not sure if this is kind of what you had in mind: http://jsfiddle.net/rniemeyer/JKTTz/

You could certainly animate something other than the background color if you wanted.  Maybe even pass in the property that you want animated.
Reply all
Reply to author
Forward
0 new messages