• Hello websevendev!
    Awesome plugin! Saves me a lot of time. I was wondering if there is a way to change the default settings, for example:

    That every time I add a fade in effect has an ANIMATION DELAY (MS) of 100 and not 0, and that the ANIMATION DURATION (MS) is 1000 instead of 400, and that the button “Animate only once, when scrolling down for the first time.” is enabled by default.

    I think you get the idea.

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author websevendev

    (@websevendev)

    I was wondering if there is a way to change the default settings

    No, but I’ll keep that in mind next time I work on the plugin.

    Plugin Author websevendev

    (@websevendev)

    I wasn’t able to add customizable default settings, but there is now a filter in place that can be used to accomplish something like that on the front end:

    add_filter('anfb_aos_attributes', function($attributes, $args) {
    	$attributes['data-aos-delay'] = 100;
    	$attributes['data-aos-duration'] = 1000;
    	$attributes['data-aos-once'] = 'true';
    	return $attributes;
    }, 10, 2);

    It’s now also possible to copy-paste animation settings so hopefully not as painful to animate multiple blocks.

    Thread Starter sroloff

    (@sroloff)

    That’s perfect, thanks for your effort!

    This is great! I was just coming here to ask about this, and I discovered it had already been asked, and answered!

    Thanks @websevendev for the continued excellent work on this plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Default Settings’ is closed to new replies.