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.
November 20, 2014 at 9:58 am
#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.