Forums

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

Home Forums JavaScript jQuery Horizontal Slide in

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34058
    ajinkyax
    Participant

    I want my DIV to Slide in from side on page load.

    Can any1 help me out. Im not any JavaScript programmer. But i can use existing scripts.

    DEMO: http://www.customercentria.com/

    – AJ

    #85572
    jamygolden
    Member

    The page you’ve linked to isn’t working for me for some reason, but here’s an example of what you’re asking about.
    http://jsfiddle.net/jamygolden/Ctv6N/

    #85575
    Rob MacKay
    Participant

    what you want to do is make sure you have a position:relative; on a wrapper element, then position: absolute; the div you want off the page. Then when you use animate to pull it back into the place you want.

    If you create the element as the last item in the wrapper div you will find that it will automatically be positioned above all the other items in the wrap without using z-index.

    http://api.jquery.com/animate/

    #93113
    ajinkyax
    Participant

    Hi Robskiwarrior, yes i used the same method. thanx.

    @jamy_za cool :)

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