Rotate image clockwise or anticlockwise inside a div using javascript

前端 未结 5 1792
情歌与酒
情歌与酒 2020-12-05 11:27

HI, Is there a way by which I can rotate an image inside a div clockwise or anticlockwise.

I have a main fixed width div[overflow set to hidden] with images loaded f

5条回答
  •  爱一瞬间的悲伤
    2020-12-05 12:15

    If you're using jQuery, jQueryRotate is a small (less than 3Kb minified+gzipped) plugin that rotates images:

    http://jqueryrotate.com/

提交回复
热议问题