Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Newb help with JS

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30736
    retropunk
    Member

    Hello, I’m new to JS and CSS. Is there a way to get the following storyboard to happen in an html page? Basically I’d like to have a series of images on a page and when you click on an image have them all slide off the page to the left while the relative image info slide in from the right. Then when you click the back button the reverse would happen. Thanks for the help! http://imgur.com/awPWL.jpg

    #74477
    Brian Meyer
    Participant

    retro, this certainly is possible. I haven’t implemented it myself, but I imagine it could be accomplished with jquery and css. Basically you could change the ‘position’ (position: absolute; top: -300px; left: -300px;) of a div (your main content) using Jquery. The effect of it flying off the page could be accomplished with animation effects.

    This is going to be tricky if you are new to JS and CSS, but If you learn about positioning in CSS, and Jquery’s animation and selector tools, it should be a good start.

    I know if a page which has a similar ‘paging’ effect, but I believe it’s done using flash.
    http://speedvagen.com/

    #74449
    retropunk
    Member

    yes, well I am new to Jquery but I am a seasoned Flash developer. I’ve been wanting to branch out a bit.
    I can do this effect easily in Flash but haven’t had luck with the Jquery site examples yet.
    I’m just starting out though so hopefully soon!

    Thanks for responding!
    – Patrick

    #74450
    retropunk
    Member

    Just to give you an idea, this company has the exact effect I am looking to do! But I haven’t been able to hash through the source, it’s way over my head it seems. :)

    http://www.codeandtheory.com/#/work/

    #74451
    retropunk
    Member
    #74457
    jfreehill
    Member

    This is definitely doable using jQuery. One term that’s often used for it is “Coda slider”, as the technique apparently was popularized by Panic (Mac OS Developer) on their Coda site: http://www.panic.com/coda/

    There are many resources if you Google ‘coda slider’ but Remy Sharp’s implementation is probably the most useful you’ll find: Coda Slider Screencast and the Demo.

    Since it’s just sliding between divs you can of course put other div’s inside those and theoretically do it for whole pages.

    #74432
    retropunk
    Member

    oh wow! Thats great. I was searching all around Google but I didn’t really know what term exactly described the technique I was trying to achieve! :)
    This looks great. I’m going to check it out now.
    Thanks so much
    – P

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.