29
rated 0 times
[
36]
[
7]
/ answers: 1 / hits: 41013
/ 7 Years ago, thu, september 28, 2017, 12:00:00
In typescript how to change css styling just as I would do this way?
$(.s-hand).css(transform, translate(-50%, -100%) rotate( + s*6 + deg));
or
var hourPointer = document.querySelector('.hour')
hourPointer.style[transform] = `rotate(${hour}deg)`;
Because I have no idea how to achieve that..
More From » css