Jump to content
Search Community

makis2404

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by makis2404

  1. 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.

  2. When I want to add an event handler to an svg element how can I select it?

    With DOM. Yes.

    With jquery?

    With ... d3.js?

    Is there any incompatibillities with d3.js?

×
×
  • Create New...