Is there a way to see what plugins are loaded? For example, I want to be able to detect if CustomEase or ScrollTo is available on a page.
In case you need a whole list of them:
var plugins = com.greensock.plugins;
Object.getOwnPropertyNames(plugins).forEach(
function (val, idx) {
$("<li>" + val + "</li>").appendTo("ul");
}
);
var eases = com.greensock.easing;
Object.getOwnPropertyNames(eases).forEach(
function (val, idx) {
$("<li>" + val + "</li>").appendTo("ul");
}
);
See the Pen qXpEdR?editors=1010 by GreenSock (@GreenSock) on CodePen