Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Triggering a keyframe animation on a specific js variable value. Reply To: Triggering a keyframe animation on a specific js variable value.

#188844
Paulie_D
Member

What would cause the trigger to change?

Basically you need an initial function to check that the value has actually changed

.change perhaps? – http://api.jquery.com/change/

Then you need to get the current value, compare the target value and if they are equal do something.

If they aren’t you need to loop back again (I think) to check again…or perhaps not..in this instance.