Set Webkit Keyframes Values Using Javascript Variable
Okay, not what your actual code looks like, but you can’t throw JavaScript variables into CSS, it won’t recognize them. Instead, you need to create the CSS rules through JavaScript and insert them into the CSSOM (CSS Object Model). This can be done a few ways — you can either just create a keyframe animation … Read more