Jump to content
GreenSock

MethodNerd

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

1,010 profile views

MethodNerd's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Thanks for pointing that out. In a scenario such as: If I'm not using ES modules and I'm using GSAP 3x with plugins for my script, and I'm not sure what version of GSAP the site might be using and if they might be using plugins in their scripts. Do I need to store, reset, and restore window._gsDefine and window._gsQueue like in the example at: https://greensock.com/forums/topic/15485-using-multiple-instances-of-greensock-on-the-same-page/?tab=comments#comment-67387
  2. I'm writing a script that will be included on other websites that I don't have control over. I'm trying to figure out the best way to make sure the use of GSAP in my script doesn't conflict with the possible use of any version or multiple versions of GSAP that a site is already using or may use in the future. I found a proposed solution from 2016 at: It recommends: Storing window.GreenSockGlobals and a couple of other global variables in temporary variables. Setting some of the variables to null. Assigning window.GreenSockGlobals to a custom variable as an empty object for use inside my script. Loading the GSAP version my script will use. Restoring the affected variables to their original versions for other scripts to use. I notice when inspecting the window object that window.GreenSockGlobals has not been used since GSAP 3.0. I also noticed that GSAP is using between 30 and 53 global variables depending on the version you use. Some of those variables with the same name contain different values depending on the version of GSAP you use. Should I be checking for the existence of all possible GSAP global variables, storing them, and reassigning them like in the example above? Or do you have any other suggestions on how to go about making sure the use of GSAP in my script doesn't conflict with any other scripts using GSAP on the same page?
  3. Hey there, I'm wondering if there are any plans to bring back the CYBERMONDAY coupon for 2020? I'm getting ready to buy a membership but I'm hesitant because Cyber Monday is only a couple weeks away. I'm buying it either way, just don't want to miss out on a good deal.
  4. I'm developing a WordPress plugin that I would like to include GSAP in for animating elements. I would like to list my plugin in the WordPress.org plugin directory. One of the requirements for listing a plugin in the WordPress plugin directory is that all files utilized in the plugin need to be compatible with the GNU General Public License v2 or later. Are any of the GSAP licenses compatible with GNU General Public License v2 or later? The reason I ask is because I have seen a couple of WordPress plugins using GSAP. But my interpretation of the GSAP license is that it is NOT compatible with the GNU General Public License v2 or later. It may be possible that those plugins just fell through the cracks when submitted to WordPress. I'd like to figure this out before I start coding my plugin to avoid having to change to a different animation library later on.
×