admin管理员组文章数量:1313599
Flip is a great JQuery plugin for flipping blocks, but it doesn't preserve the background while it animates the flip.
For example, I have this pretty background here, before I flip. While flipping, it gets ugly.
Is there a way I can flip this div
nicely, keeping the pretty background I have, and maybe even achieve a smoother animation than I can get with Flip?
If I need to dive into this headfirst and code my own function for flipping a div
, that's also doable, and I'd really appreciate some pointer there, if that's what I must do.
Thanks so much!
Flip is a great JQuery plugin for flipping blocks, but it doesn't preserve the background while it animates the flip.
For example, I have this pretty background here, before I flip. While flipping, it gets ugly.
Is there a way I can flip this div
nicely, keeping the pretty background I have, and maybe even achieve a smoother animation than I can get with Flip?
If I need to dive into this headfirst and code my own function for flipping a div
, that's also doable, and I'd really appreciate some pointer there, if that's what I must do.
Thanks so much!
Share Improve this question edited Oct 16, 2011 at 19:05 Nightfirecat 11.6k6 gold badges37 silver badges53 bronze badges asked May 2, 2010 at 18:20 IsaacIsaac 16.4k10 gold badges54 silver badges77 bronze badges 1- Your sample links seem to be showing just static images. Are they screenshots of the page you're working on? Where is the actual page you're working on? Sorry, I don't understand what code you are showing. – thomasrutter Commented May 3, 2010 at 3:45
3 Answers
Reset to default 3Try the jQuery QuickFlip pulgin, this one seems pretty neat with handling the background.
Try looking into momoflow, its a coverflow type of application that animates the background to different angles.
It's using the canvas tag however, which could be an issue for you if you want IE patibility. However the technique the dev is using is to chop the the image into several vertical slices and animate their position. You could extend this functionality to introduce a full flip!
A really cool way to do this is use CSS 3 transformations. It's much better than using a script; you should always avoid using scripts where simpler methods can be employed.
本文标签: jqueryFlipping around a div using JavascriptStack Overflow
版权声明:本文标题:jquery - Flipping around a div using Javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741931008a2405572.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论