| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2007
Location: Australia
Posts: 22
|
Javascript for sliding DIVs
I'm trying to incorporate a sliding animation between DIVs for a site I'm working on, but I'm confused over what to do. I know virtually nothing about JavaScript (planning on buying a book on it soon, so please don't tell me to "just learn it") and I can't find any decent solution through Google. Examples of what I'm trying to achieve are on Panic's Coda site (panic.com/coda) and the iMac section at Apple.com (apple.com/imac - the "why you'll love a Mac" box). Any help? |
|
|
|
|
|
#3 (permalink) |
|
Grumpy old man
Join Date: Oct 2007
Location: North Japan
Posts: 1,617
|
From a quick look, I couldn't find any sliding stuff on either of the sites you mentioned. The Coda site had some nice pop-up pseudo-windows, and the apple page just seemed to load a new page every time for me. No effects at all. But regardless, I've been using a lot of mootools lately. I particularly like the way they've made everything into components so you can keep your code as lightweight as possible. The sliding divs implementation is here: mootools demos - Fx.Slide Demo |
|
|
|
#8 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,468
|
there's a sliding div example on the jquery homepage! Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
|
|
#9 (permalink) |
|
Registered User
Join Date: Dec 2007
Location: Australia
Posts: 22
|
Guys, I can't get this working at all. I've spent hours trying to use each of the things you've suggested but I haven't gotten anywhere. What am I missing? Maybe I should explain my situation a bit more. I have three divs (each 300x200px) in a row next to each other. These divs are inside another 300x200 div which hides the overflow. I want to be able to click a link in div2 and have div1 slide into view, hiding div2 and div3. Does that make sense? |
|
![]() |