简体   繁体   中英

jQuery popup box animation

I am interested in writing my own lightweight popup box for my own websites. I like the way the soundcloud popup box animation works (click Sign In at the top left to view) but, from what I can tell, it is proprietary and not a plugin.

How do soundcloud achieve the "zoom" style effect where by the popup animation seems to come from the thing you clicked. I would like to replicate this effect.

It's just a geometry thing. Just increase the box dimensions as you move it towards the center of the screen, and apply the effect with jQuery's .animate() .

There's actually an example on jQuery's page: http://api.jquery.com/animate/

Looks quite similar to what you want.

maybe you can modified from this library, it has animation and draggable. The code is quite very simple. JQuery based: http://www.okyfirmansyah.net/blog/?p=166

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM