• Hi, i have installed the plugin and i add the classes to the elements. I paste also the add_filter code on the function.php file. But when i scroll up the animation doesn’t reset. How can do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • stermie

    (@stermie)

    I would like to know this as well – sooner than later, please!

    Plugin Author Arya Dhiratara

    (@aryadhiratara)

    Hi @stermie @djcaipiroska,

    Really sorry, I didn’t noticed about this thread. I don’t know why, but think the email from this forum went to my spam folder.

    I have try using the filter that I provide in the plugin description

    add_filter( 'aos_init', function($aos_init) {
        return '
        var aoswp_params = {
            "offset":"200",
            "duration":"1800",
            "easing":"ease-in-out",
            "delay":"0",
            "once": false};
        ';
    } );

    or even this custom filter that I use in some website

    add_filter( 'aos_init', function($aos_init) {
        return '
        var aoswp_params = {
            "offset":"-100",
            "duration":"850",
            "easing":"ease-in-quart",
            "delay":"300",
    	"throttleDelay": "300",
            "once": false
    	};
        ';
    } );

    both are working.

    If you already use the filter, can you confirm that the inline script with “aoswp-script-js-before” ID reflect the change?

    stermie

    (@stermie)

    Yes, the inline script is there and I replaced with your filter, but the animation does not restart once scrolling back to that section. Is there a way to reverse the animation(s) when scrollout?

    stermie

    (@stermie)

    Actually it now looks like only the top row does not restart the animation when scrolled to. Rows below that seem to restart.

    Thread Starter djcaipiroska

    (@djcaipiroska)

    I notice the same of @stermie. The problem is the only first row. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restart animation on scroll up’ is closed to new replies.