Jump to content
GreenSock

_hedura_

Members
  • Posts

    1
  • Joined

  • Last visited

_hedura_'s Achievements

  1. I am new to the flip plugin and I would like to include it to a click event for my page. When I initialize it by adding the "registerplugin" to the top of my page my code stops working. How do I get Flip to work with my current JS? The code is very simple ``` gsap.registerPlugin(Flip); const pop = document.querySelector(".pop"); const popExit = document.querySelector(".pop-exit"); document.querySelector(".img-1").addEventListener("click", () => { pop.style.visibility = "initial"; }); popExit.addEventListener("click", () => { pop.style.visibility = "hidden"; }); ```
×