By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,361 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,361 IT Pros & Developers. It's quick & easy.

Div sliding effect on open/close

P: 65
Hi all,

I have a div which can be closed and opened on click of a section. Now what i would like to do is that on open and close the div should have a sliding effect.

Normally what we would do is that just apply the styles display:none or display:block, however in that case it just hides/shows instantly.

What i would like to do is have a sliding effect on open/close.

Is this possible to do?

Thanks in advance.
Nov 5 '08 #1
Share this Question
Share on Google+
2 Replies


P: 65
Sorry guys. Should have googled first.

Found something here

However do let me know If anyone knows a better approach.

Thanks.
Nov 5 '08 #2

Dormilich
Expert Mod 5K+
P: 8,639
maybe this is worth a read too (though it focuses on another subject, but it seems to use some techniques you may want.)

regards

PS: yes, google is your friend
Nov 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.