Jump to content
Search Community

Bohdan.

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Bohdan.

  1. Hi to all!

    I need to play the animation right away without scrub control. When the trigger fires - animation play with duration.

     

    gsap.timeline
    .from('.image', {
      opacity: 0,
      y: 80,
      ease: 'power2.ease',
      duration: 1,
      scrollTrigger: {
        trigger: '.image',
        start: 'top bottom-=10%'
      }
    })
    .from('.image-2', {
      opacity: 0,
      y: 80,
      ease: 'power2.ease',
      duration: 1,
      scrollTrigger: {
        trigger: '.image-2',
        start: 'top bottom-=10%'
      }
    })


    Is it possible to do this without onEnter callback and animation.play()?
     

    Thank You!

     

×
×
  • Create New...