티스토리 뷰

 

http://beneposto.pl/jqueryrotate/

 

jQueryRotate - rotate image in browser by any angle

OpenSource Cross-browser jQuery plugin to rotate image by any-angle with an animation support.

beneposto.pl

jQuery를 통해 이미지 회전이 필요할 때 관련 라이브러리를 추가하여 기능 구현을 하면 된다. 아래와 같이 다양한 예제들이 소개되어 있다.


$("#img").rotate(45);

$('#img').rotate({
    angle:45
});

$('#img').rotate({
    angle: 0,
    animateTo:180
});

$('#img').rotate({
    angle: 0,
    center: ["50%", "100%"],
    animateTo:180
});

$('#img').rotate({
    duration:6000,
    angle: 0,
    animateTo:100
});

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함