Jump to content
Search Community

Problem with a small animation (y)

NiceBone test
Moderator Tag

Recommended Posts

Hello guys,

 

first of all i'm pretty new to gsap. I've started like 2 days ago with a new angular project. I made a small video regarding my problem with the y axis. Everytime the "scroller-start marker" hits the "start maker" the whole animation goes crazy. 

 

Hopefully one of you will find my mistake. :D

video: 

 

 

 

HTML
<h1 #test>MUSIC</h1>

Angular part

gsap.timeline({
  scrollTrigger: {
    trigger: this.test.nativeElement,
    start: 'top bottom',
    end: 'bottom 75%',
    scrub: 1,
    markers: true,
  },
}).fromTo(
  this.test.nativeElement, {
    opacity: 0,
  },
  {
    x: innerWidth,
    y: -innerHeight,
    opacity: 1,
  }
);

 

Thanks

Jerome

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...