Written by Anonymous

  1. gsap.registerPlugin(ScrollTrigger);
  2.  
  3. gsap.from(".ht-ct", {
  4. scrollTrigger: {
  5. trigger: ".ht-ct",
  6. start : "top center",
  7. end : "bottom center",
  8. toggleActions: "restart none none none",
  9. },
  10. x: 750,
  11. opacity: 0,
  12. duration: 0.8
  13. })
Notepad
Select All