简体   繁体   中英

How to create the effect like this page?

Click "Reply by Email" of that page,

http://losangeles.kijiji.com/rooms-roommates/el-monte/room-for-rent-el-monte-california-91732/?ad=785656

By using jQuery you can simply use the show() method:

$("button").click(function () {
  $("#mydiv").show("slow");
});

More info here: http://docs.jquery.com/Effects/show

In jQuery the effect closer to that page is slideDown :

$("button").click(function () {
  $("#mydiv").slideDown("slow");
});

With jQuery. See jQuery Effects/animate .

I believe MooTools is capable of doing this task. If not its not that hard to create that effect. Use setInterval to create an interval that repeats itself and resizes the box.

Simply jQuery

With one line of code you can do this.

www.jquery.com

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