Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with dynamic content (new parallax-window added) #285

Open
RBFraphael opened this issue Jul 19, 2019 · 1 comment
Open

Not working with dynamic content (new parallax-window added) #285

RBFraphael opened this issue Jul 19, 2019 · 1 comment

Comments

@RBFraphael
Copy link

I'm creating a blog with infinity scoll and a full-width featued image. When user scrolls to page's bottom, it load next post with ajax.

Now, I'm trying to add parallax in featured images, but it's not working when new posts loads. I've tried to run $(".parallax-window").parallax() just after loading new post, but parallax bugs and shows only 50% of featured images container's height.

@awesomedan93
Copy link

awesomedan93 commented Jul 30, 2019

Try this after you are changing something in DOM
jQuery(window).trigger('resize').trigger('scroll');
or read this https://github.com/pixelcog/parallax.js#notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants