Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

Hi everyone,


I need GSAP WordPress plugin. If anyone know please share here.

Link to comment
Share on other sites

Hi there,


There is not such thing as a GSAP WordPress plugin. GSAP just works™️ there are a few threads in the main forums where people ask how to integrate GSAP with WordPress, do a quick search and you'll find some information. But the long and short of it is that you just need to enqueue it in your WordPress hooks like any other external JavaScript library


Happy Tweening

  • Like 3
Link to comment
Share on other sites

Hello @Manikandan Jeyaraman and Welocme to the GreenSock forum!


All you have to do is enqueue the GSAP script like @Dipscom advised.


Please add the below code to your WordPress themes functions.php


// The proper way to enqueue GSAP script
// wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
function theme_gsap_script() {
    wp_enqueue_script( 'gsap-js', 'http://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.1/TweenMax.min.js', array(), false, true );
    wp_enqueue_script( 'gsap-js', get_template_directory_uri() . '/js/custom-gsap-scripts.js', array(), false, true );
add_action( 'wp_enqueue_scripts', 'theme_gsap_script' );




WordPress Codex for enqueuing JS files: http://codex.wordpress.org/Function_Reference/wp_enqueue_script


Happy Tweening :)

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.