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 21, 2014 at 9:21 am
#188909
Philip1415
Participant
Its the ‘do something’ bit I’m stuck on!
I’ve just tried
if (trigger = 1) {
jQuery("#BoxBreath").css('background-color', '#0F6');
};
<code></code>
In some experimental code and that didn’t work