Forums › Forums › Search & Filter Pro › When AOS Animate on Scroll is enabled the filtering displays nothing
Tagged: ajax, AOS, blank result
- This topic has 13 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Anonymous(Private) June 2, 2020 at 2:13 pm #246938
As said in this post #post-246606, the animation works well before applying the filter. When scrolling down or up you can see the animation playing. As soon as you use a filter and go back to the full page, the animation is no longer there.
Trevor(Private) June 2, 2020 at 2:31 pm #246949ah. I see, and I know the reason. When ajax has been applied, the animate script is removed and needs to be set again, like this (you need to edit the code to add the needed function):
<script> (function ( $ ) { $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // run your animation script again here. }); }(jQuery)); </script>
-
AuthorPosts