开发者

MooTools - Rotating images by degrees

I need to rotate an image by x amount of deg开发者_运维知识库rees using MooTools. I Googled for quite a bit and found a lot of attempts, but all the examples and demos were broken. The closest I got was a Homer Simpson demo, but it repetedly throws the error "getMatrix is not defined".

My entire script is finished, I just need a way to rotate an element. Any ideas??


Here's a tutorial for rotating images: http://www.ajaxblender.com/howto-rotate-image-using-javascript-canvas.html.

It doesn't use mootools, as it is pure JavaScript. The code itself is compact enough that you probably wouldn't save too many lines using mootools anyhow.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜