I would like to animate a phrase in a wordpress site with a help from animate.css and wow.js. When I reload a page the phrase I would like to animate appears like a ordinary text and only after that the animation starts to happen. I tried to change the order of scripts but still it doesn't work the way it supposed to.
add_action('wp_enqueue_scripts', 'theme_styles');
add_action('wp_footer', 'theme_scripts');
function theme_styles() {
wp_enqueue_style('style', get_stylesheet_uri());
wp_enqueue_style('animate', get_template_directory_uri() . '/assets/css/animate.css');
}
function theme_scripts() {
wp_enqueue_script('wow', get_template_directory_uri() . '/assets/js/wow.min.js');
wp_enqueue_script('animate_init', get_template_directory_uri() . '/assets/js/animate-init.js');
}