Hello everyone
I'm new in Gsap. I have integrated into my wordpress theme the related scripts that I needed, but they don't seem to work perfectly, any help would be useful,thank you very much
these are the inclusions of the scripts:
if ( ! function_exists( 'New_scripts' ) ) {
function New_scripts() {
wp_enqueue_script( 'New-gsap', get_template_directory_uri() . '/js/gsap.min.js', array( 'jquery' ),null,true );
wp_enqueue_script( 'New-ScrollTrigger', get_template_directory_uri() . '/js/ScrollTrigger.min.js', array( 'jquery' ),null,true );
wp_enqueue_script( 'New-ScrollToPlugin', get_template_directory_uri() . '/js/ScrollToPlugin.min.js', array( 'jquery' ),null,true );
wp_enqueue_script( 'New-CSSRulePlugin', get_template_directory_uri() . '/js/CSSRulePlugin.min.js', array( 'jquery' ),null,true );
wp_enqueue_script( 'New-script', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true );
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
}
}
add_action( 'wp_enqueue_scripts', 'New_scripts' );
I've been trying for days I can't figure it out