17.06.2018, 12:03
(17.06.2018, 09:45)admin Wrote: You have it in reverse by setting animation time to wind speed. So higher speed will produce slower animation. Also you don't need to set all css properties again, only the animation ones.
Thanks admin for your quick response, I know I have to improve the code for correct functioning about reverse by setting animation time, but the problems is that I have done a lot of code but it doesnt work, I have doing something bad, or I have missing some properties. About change only the animation times, I have tried to do it, but I can not get the gol. Could you help me please??
I have tried with the next code, but it doesnt work.
***** Code *******
grp.listen("42/2/7", function(object) {
var numvel = object.value;
var strvel = numvel.toString();
$(".vel1").css({
"-webkit-animation: " + strvel + "s rotate linear infinite",
"animation: " + strvel + "s rotate linear infinite",
"-webkit-transform-origin: 50% 50%",
"transform-origin: 50% 50%"
})
});
Best Regards
Roger