pixelcog / parallax.js

Simple parallax scrolling effect inspired by Spotify.com implemented as a jQuery plugin
MIT License
3.53k stars 840 forks source link

Parallax-mirror starts 65px lower than it should on and position attribute doesn't work #284

Closed dandyrow closed 5 years ago

dandyrow commented 5 years ago

Hi, I'm not totally sure how to describe this issue but here i go.

I have created a responsive website and I want to use parallax.js to have a parallax image behind the nav bar. This works fine at normal desktop size but when i resize the web page the parallax starts below the navbar.

I've tried using the position data attributes but that doesn't work. I even tried moving it in the opposite direction to the one i wanted and that didn't work either in the mobile view. This all works in the desktop view.

I've never done JSFiddle before but i pasted my code in there: https://jsfiddle.net/z5a0Lnpr/

Edit: Nevermind I was being stupid with my code. It wasn't a bug with parallax.js. Sorry!