Fixed flickering before the first screen animation in Bricks

ARTRU

In version 1.9.3 this error has not been fixed yet. Usually you will only notice this error when any element at the top of the page is assigned Animation. There will be a phenomenon where elements will appear for a few milliseconds before the animation is executed.

The cause is the file animate.min.css load in footer. Oxygen Builder uses AOS which is another animation library and they have the option to load at the top of the page.

The temporary fix in Bricks is to load the animation file in the head.

Insert this code into the function.php file in your childtheme or other custom code plugin:

/** LOAD ANIMATION BRICKS IN THE HEAD */
function enqueue_bricks_animate_head(){
	wp_enqueue_style( 'bricks-animate' );
}
add_action('wp_enqueue_scripts', 'enqueue_bricks_animate_head');
COMMENT

Related Articles