Jump to content
Search Community

JS Bin often can't accept libraries on top of gsap

makis2404 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Very often when trying to work with JQuery or D3.js on top of Gsap there is something that gows wrong and only pure DOM (after closing other libraries) can manage events with event handlers. And I have the idea that it is JS Bin that causes the problem. Have you seen any JSBin issues like that?

e.g.  var $btn = $("#btn_1") 

                $btn.on("click",function(){//some TweenMax.to ...})

or

d3.select("#btn_1").on("click",someFunction)

 

they can't work properly.

But after turn it to: document.getElementById("btn_1").addEventListener("click",someFunction)

can proceed.

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.
×
×
  • Create New...