SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrolling Background

    I have seen this on websites before where the website will be one page. And you have to scroll down our sideways to view the different sections of the website like "about", "contact" etc. But when you scroll the background scrolls slower than the foreground. King of like how the android phones work when you swipe home screens and the background moves just a little bit. I heard it was done using JavaScript but I have Google my brain off and cannot find much on it. Any help? Please move if I am indeed in the wrong section.
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health

  2. #2
    SitePoint Zealot Gar onn's Avatar
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the backgrounds are DIV's positioned fixed (or absolute)
    and the TOP position (and LEFT) is changed depending on the scroll position.

    just go to one of those websites and view (steal) source

  3. #3
    SitePoint Addict zeeb44's Avatar
    Join Date
    Apr 2011
    Location
    Greenville, SC
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See every time I view source on one of those websites it looks like there is java script controlling it. I cant even remember one of the sites off the top of my head. Let me look for one.
    Personal Portfolio - Zeeb44
    IT Manager for - Family Dental Health


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
  •