Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
ice-frog

Is there an official guide on how to develop plug-ins?

Recommended Posts

Although there are already many official plugins available, you will still encounter situations where you want to integrate other third-party libraries such as: three.js, p5.js, and other webgl, canvas libraries. So I don’t know if the official can provide a guide to developing a gsap plugin? 
Thanks~

Link to comment
Share on other sites

Well there's this

https://greensock.com/docs/Plugins/TweenPlugin

 

And the TEMPLATE_Plugin.js file has some comments

https://github.com/greensock/GreenSock-JS/blob/2802e96d94358b2ad28381ca83ac71de7f90f95e/src/uncompressed/plugins/TEMPLATE_Plugin.js

 

But I don't really understand how it works. Every plugin looks really different, some use set, some don't.

 

I want @Carl to make some videos showing how to make a couple plugins. 

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Yep, the TweenPlugin template is probably the best place to look. But as I work on 2.0.0, beware that the structure may change with that release. Nothing is totally nailed down yet - just giving you fair warning. For now, though, it's totally fine to base your plugin on what you see in that template. 

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.

×