I am trying to implement this effect in wordpress:
I followed the implementation guide but it is not animating.
I included the js files in function.php
, like this:
<?php
function addScroll_scripts() {
wp_enqueue_script('js1', get_template_directory_uri() . '/circus-scroll-tween.min.js', array('jquery'), '', false);
wp_enqueue_script('js2.frame-carousel.min', get_template_directory_uri().'/main.min.js', array(), '0.1.0', false );
}
add_action( 'wp_enqueue_scripts', 'addScroll_scripts' );
?>
I've worked on this problem for a day but I still don't know what's the problem. I almost forgot to say that I put the js files directly in my theme folder.