Javascript

(Javascript) 자바스크립트 이미지 회전 사용 방법

SAFE 2016. 5. 2. 11:25

출처 : http://www.incree.com/tc/incree/15


출처 : http://stackoverflow.com/questions/13616867/jquery-rotate-function-not-working


var angleValue = 'rotate(' + curAngle + 'deg)';


angleValue = 'rotate(' + curAngle + 'deg)';

            rotateEl.css({

                '-moz-transform': angleValue,

                '-webkit-transform': angleValue,

                '-o-transform': angleValue,

                '-ms-transform':angleValue

            });