vue-parallax icon indicating copy to clipboard operation
vue-parallax copied to clipboard

Parallax stops midway. please help!

Open Dinibewerbig opened this issue 6 years ago • 5 comments
trafficstars

Good evening. I tried your plugin, but the parallax effect stops midway. I already changed sectionHeight and other variables but still the same issue.

As you can see on the webpage provided down below, there is enough runway of the image left. Why does it stop then? Please have a look at my code and my website here. I would appreciate your help.

https://awesome-gates-b6e8e3.netlify.com/

<div style="position: relative; z-index: 0; "> <parallax :speed-factor="0.5"> <img src="~/assets/header78.png" style=" width:100vn" alt="very cool bg"> </parallax> </div>

Dinibewerbig avatar Mar 10 '19 00:03 Dinibewerbig

I have the same issue. The moment the parallax element is not on the top it stops working after some time. It seems also impossible to have more than one parallax element.

kaiserkiwi avatar May 21 '19 11:05 kaiserkiwi

Well, this behaviour is kind of intended. Because if the image is not in your viewport there is no reason to animate it. Thus it checks if the parallax element is in view.

If I find some time, I am gonna check on this. I wanted to rewrite some portions of the component and use IntersectionObserver instead the getBoundingClientRect

apertureless avatar May 22 '19 08:05 apertureless

any progress on this?

eybarta avatar Sep 26 '19 07:09 eybarta

It seems also impossible to have more than one parallax element.

That's an important note and probably deserves to be in the README. I spent a very long time trying to figure out why my second parallax element wasn't working.

ChrGriffin avatar Jun 08 '20 23:06 ChrGriffin

any update on this, having this issue ?

GiroDigital avatar Dec 06 '20 05:12 GiroDigital