admin管理员组文章数量:1350023
How can a grow/shrink animation be done with jQuery and/or CSS? An example that I can think of is this when you click on the Join Now
button.
I looked into animate.css but they did not offer such an animation.
How can a grow/shrink animation be done with jQuery and/or CSS? An example that I can think of is this when you click on the Join Now
button.
I looked into animate.css but they did not offer such an animation.
Share Improve this question asked Nov 10, 2012 at 17:51 NyxynyxNyxynyx 63.8k163 gold badges507 silver badges856 bronze badges 6-
there are a ton of jquery modal plugins available. A little google search will likely turn up "The 30 best modals" or similar. Also known as
dialog
's – charlietfl Commented Nov 10, 2012 at 17:57 - I have created the modal myself, I'll now like to animate the modal with a 'shrinking' animation. – Nyxynyx Commented Nov 10, 2012 at 18:00
-
easy to implement with jQuery
animate()
method api.jquery./animate Use whatever css properties you want. Also some built in effects likeslideUp()
,slideDown()
. look into source of a plugin for ideas also.. Effects API: api.jquery./category/effects – charlietfl Commented Nov 10, 2012 at 18:01 - I dont see Join now text anywhere in the page – defau1t Commented Nov 10, 2012 at 18:06
-
1
@defau1t geeesh..try
ctrl+F
– charlietfl Commented Nov 10, 2012 at 18:07
1 Answer
Reset to default 8DEMO — Solution using CSS3's transition-duration
(W3Schools) and transform:scale(X,Y);
(W3Schools).
Update:
DEMO — Going a step further, doing more than just changing to opacity:0;
by adding display:none;
(via jQuery .hide()
) at the end of the animation.
本文标签: javascriptShrinkGrow animation using jQueryCSSStack Overflow
版权声明:本文标题:javascript - ShrinkGrow animation using jQueryCSS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743846789a2549266.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论