This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to change the rotation speed in images using knx objects values
#3
(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
Reply


Messages In This Thread
RE: How to change the rotation speed in images using knx objects values - by batistacaceres - 17.06.2018, 12:03

Forum Jump: