Skip to content

Snippet: 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;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top