Snippets: Change WPBakery CSS Animation Offset

The WPBakery CSS animations use a renamed version of the waypoints script so that items animate once they become visible on the screen. The default offset value is 85% which means it will trigger when the top of the element is 85% of the way from the top of the window. You can learn more about the offset parameter here

// Modify the wpbakery css animation waypoint settings.
add_filter( 'wpex_vc_waypoints_settings', function( $settings ) {
    $settings['offset'] = '55%'; // default is 85%
    return $settings;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)