SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: slide in div

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    slide in div

    Can someone tell me how the site nasty girl . com created the code for their slide in newsletter signup form? I just need the slide in effect with the close button for a message. Form info is not needed.

    Thank you

  2. #2
    Non-Member
    Join Date
    Apr 2011
    Location
    no fixed address
    Posts
    851
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One way of doing it is to use css positioning to first place the sliding div outside of its container and then use setInterval() and/or setTimeout() to gradually change the top, left, bottom, right styles (depending on the direction of the sliding) to create the sliding animation.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •