Hello everyone,
$(".textF").animate({width: actualWidth + "px"}, durations[0]*1000);
Fast question. This works because I got it with jQuery. But I have a lot of spans with that class and if I do it this way doesn't work:
var fElements=document.getElementsByClassName("textF");
fElements[0].animate({width: actualWidth + "px"}, durations[0]*1000);
The error I get:
Uncaught DOMException: Failed to execute 'animate' on 'Element': Partial keyframes are not supported.