ThemeForest

Need a div transition effect

4264 posts
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Interviewed on the Envato Notes blog
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Exclusive Author
  • Beta Tester
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • United Kingdom
  • Referred between 1 and 9 users
Reaper-Media says

Hi guys! I am looking for an open source javascript transition effect for a div but can’t find what i’m looking for.

Basically, and i’m pretty sure that there is one that exists, i am looking for it to do this.

1. Not visible state: the div content isnt visible.

SOME CONTENT
SOME OTHER CONTENT

2. Transitioning: the div content starts to appear, pushing the content below it down.

SOME CONTENT
part of the div
SOME OTHER CONTENT

3. The transition is finished, all the div is visible.

SOME CONTENT
all of the div
SOME OTHER CONTENT

my structure is like this:
<li>listItem</li>
<div id="whatever">
     <li>antother item</li>
     <li>antother item</li>
     <li>antother item</li>
</div>
<li>listItem< /li >
</li>

So i’d like to be able to apply a javascript effect to the div “whatever”. And i would also need the reverse of this effect.

I just can’t seem to find what i’m looking for, and i haven’t got enough javascript skills to create the transition effect myself.

Worst comes to the worst i’ll just stick with display:block and display:none. :)

Sam.

Posted 2 years ago Permalink
Reaper-Media is an Envato staff member
77 posts
  • Has been a member for 2-3 years
  • Exclusive Author
64bit says

Are you on about something like http://www.htmldog.com/articles/suckerfish/dropdowns/ ? :)

Posted 2 years ago Permalink
193 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • Netherlands
  • Referred between 1 and 9 users
Roeven says

Do you mean a Coda Slider? They have a nice one over at jQuery Tools. It’s called a scrollable. You can set the slide effect to vertical if that’s what you want.

Posted 2 years ago Permalink
352 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • Germany
  • Referred between 1 and 9 users
chack says

Whats about that:

HTML
<li>listItem</li>
<div id="whatever">
     <li>antother item</li>
     <li id="hide">antother item</li>
     <li>antother item</li>
</div>
<li>listItem< /li >
</li>
CSS
#hide {display:none}
jquery
 $("#hide").show();
Posted 2 years ago Permalink
by
by
by
by
by