Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

simplest horizontal parallax

Featured Replies

Hi.

I use malihu script to scroll page horizontal. It works very good for my purpose.

Then, i want to use some parallax, on background or full scale div to moving along my content. I tried to use Scrolling Parallax Plugin for jQuery, but it simplt dont work for me.

How i can do smt like that in simplest way possible (only one image background - full page have 600%, and img for parallax 300%)

 

Be very careful with adding parallax, many plugins are poorly written and you get choppy animations expecially on lower powered machines. Scrollr is probably the easiest for a beginner to use and is pretty well written.

 

Also, just in case you are: don't just be throwing script plugins at every problem you'll end up with a tonne of bloat and loads of extra files (http requests) which will ruin your page speed. Try to learn the language and write the functionality yourself, like the scroll to a hash locaiton should just be a few lines of code.

Edited by rbrtsmith

isn't parallax tricky on mobile?

 

Depends what you use, most of them rely on the scroll event instead of the drag event which is why it doesn't work until you have finished the drag :(

I've got parallax working on mobile, using requestAnimationFrame as a 60fps callback, inside the callback I just measure the scroll offset to determine if and how much the user has scrolled and with that create a parallax effect. Generally speaking though I don't think parallax is a great idea on mobile, it's very processor heavy and it doesn't add enough to the experience to make that worthwhile (in the vast majority of cases)

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.