Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

gsap pin scrolltrigger

gsap.registerPlugin(ScrollTrigger);

gsap.utils.toArray('.layer').forEach(layer => {
  ScrollTrigger.create({
    trigger: layer,
    pin: true,
    start: 'top top',
    pinSpacing: false,
  });
});
Source by cdnjs.com #
 
PREVIOUS NEXT
Tagged: #gsap #pin #scrolltrigger
ADD COMMENT
Topic
Name
4+3 =