Hi there,
I’m trying to add Tweenmax to my site.
I added the TweenMax.min.js life to the js > dist > site directory and this is the enqueue script I loaded at the end of the functions.php file:
function my_assets() {
wp_enqueue_script( ‘tweenmax-scripts’, get_stylesheet_directory_uri() . ‘/js/dist/site/TweenMax.min.js’, array( ‘tweenmax’, ‘jquery’ ), ‘1.20.4’, true );
}
add_action( ‘wp_enqueue_scripts’, ‘my_assets’ );
However, this code isn’t loading the Tweenmax scripts. Am I missing something or did I write my enqueue script incorrectly?