Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

CSS rotate with origin

$
0
0

I'm new in Edge. Need to rotate a wheel with the origin information. I set a button on my stage for the click event code I write this.

 

var your_angle = 45;

 

sym.$("Rad").css({

'-ms-transform': 'rotate(' + your_angle + 'deg)',

'-ms-transform-origin': '50% 50%',

'-webkit-transform': 'rotate(' + your_angle + 'deg)',

'-webkit-transform-origin': '50% 50%',

'transform': 'rotate(' + your_angle + 'deg)',

'transform-origin': '50% 50%',

});

 

But something are wrong. becose my wheel don't rotate in center.

 

Anyone here to check my syntax?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>