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
#5
(17.06.2018, 12:22)admin Wrote: You are setting properties incorrectly, try this and remove transform origin entries:
Code:
"animation": strvel + "s rotate linear infinite",

Hi admin:

Thank you very much, now it works very well

****** Code ********


  grp.listen("42/2/7", function(object) {
    var numvel = object.value;
    var strvel = numvel.toString();
    $(".vel1").css({
          "animation": strvel + "s rotate linear infinite",
          "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, 14:45

Forum Jump: