Comments (4)
I have the same problem. I guess it needed to be triggered somehow manually
from jparallax.
Any solution to this one?
from jparallax.
Alright guys, I think I got this figured out! It wasn't easy (actually it was a bit painful due to the lack of code comments) but I reverse engineered this and figured out how to initialize each layer on page load so that it's starting at the correct origin (from the middle, for example) and then gravitates to the correct position as you move your mouse over the defined viewport (a.k.a. mouse port).
See my proof of concept/PR here: #89
from jparallax.
I also identified another issue with initialization where it will not actually properly render the parallax effect if your mouse happens to already be over the viewport upon initial page load. I've updated my PR to reflect that as well (could be buggy).
from jparallax.
Related Issues (20)
- It don't starts untill i take my mouse out of the window and turn back HOT 18
- Start at the center HOT 11
- xorigin not working right HOT 1
- Png white border ?
- [enhancement] Add missing bower.json. HOT 1
- JQuery version?
- minified version does not work HOT 3
- Does Not Work With jQuery.nicescroll
- Various changes (notably translate() )
- demo images are broken HOT 1
- Chrome/Opera and retina display
- Where is the license file HOT 1
- Parallax kicks out some images after iniciation HOT 1
- parallax-layer: top is always 100% HOT 1
- jparallax can't handle window resizing HOT 1
- Decay issue HOT 6
- Add touch event listeners.
- Help is needed! Ignoring the Y axis (yparallax) HOT 1
- Uncaught TypeError: d.event.handle is undefined with jQuery 3.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jparallax.