I\'m trying to determine the height of a div which is dynamic depending on the size of the text. I was trying to set this dynamically within the CSS as my origi
div
I managed to achieve activating a keyframe by creating a class with the name of the keyframe defined
.add_keyframe{ animation: shrink 5s }
and then add this using jquery
$('#whatever').addClass('add_keyframe');
Once the class is added your keyframe should run.