-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
scrollReveal not working with content loaded via ajax #52
Comments
Have you tried |
Yes, but maybe I can't understand it, because I always have an error "scrollReveal is not defined". You can see on in my website now. |
Ok, i use proper way to initialize scrollReveal function and now I don't have any error in console log, but still can't call function for ajax content. |
First of all, you are not loading the plugin - I don't see it anywhere in your code. Also, you are using Once you have got that right, then you can load other content with AJAX, and then use |
Got it!!!! I've tried use this one http://codingdroid.com/wp-content/uploads/Tutorial/Scroll%20Reveal/ BIG HUG! |
Indeed - that was the old one. You're welcome. 👍 |
👍 |
Guys pardon me, is it possible to use scrollReveal with AJAX on independent scrolls? If so, could anyone put together a simple example using JSON? |
If you instantiate scrollReveal like this: window.sr = new scrollReveal(); You will have access to the For example with jQuery: $.ajax({
type: "POST",
url: "api.domain.com/resource",
data: { name: "John", location: "USA" }
})
.done( function () {
// changes to your DOM and then…
sr.init();
}); |
Hello guys. First, thanks for this issue, it really helped me getting things to work with dynamic loading of content after searching for the problem somewhere else for hours! 👍
But this didn't work either. I'm not sure if it's even possible but I would be glad if you can help! |
Hi,
I try to use scrollReveal in my wordpress website. You can see it here www.wytworniaprojektu.eu (this is develop version). As you cas see I use Advanced Ajax Page Loader plugin. And this is my problem. Scroll Reveal work only once. I reload code of scrollReveal.js (see inside console log) but nothing happen.
Any idea?
Sorry for my english.
The text was updated successfully, but these errors were encountered: