I'm trying to rotate an element using the -webkit-animation
properties, but I want to be able to control the duration using jQuery and an input range slider.
Unfortunately, I'm having trouble getting it to work and I can't figure out what's causing the issue.
$('#speed').change(function() {
$('.rotate').css({'-webkit-animation': 'rotation '+this.value+'s linear infinite'});
});