I'd like to minimize a box, much like a popup popin in genie effect on a Mac, I found jQuery Transfer effect to be a close, but not quite enough, it only draws an outline and doesn't actually smear the object, is there a way to mimic the genie minimize effect of Mac?
Thanks.
This effect will not be possible with pure DOM manipulation. The flow and shape of an element is determined by rendering engine of the browser. You can apply CSS3 transformations but even this is limited to a subset of the combined steps you would need to achieve this look. However if you could handle Flash being part of this solutions you have many more options:
This example is cracking me up (best Hello World ever!):
http://swingpantsflash.com/genie_transition/genietransition.html
You can achieve the Genie effect if you use a canvas library. Here's one called CAAT.
Try using the fadeInUpBig
and fadeOutDownBig
classes from animate.css
There isn't anything that is similar to the genie effect. The closest animation you can get is if you make something on your own using CSS transforms (using scale and skew) and jQuery callbacks. Standard CSS properties of setting the top, left, width, and height values won't get you the effect you're after.
来源:https://stackoverflow.com/questions/11659147/javascript-to-minimize-div-using-genie-effect