Jump to content
Search Community

Hello Gsap community i need a clarification about the scrolltrigger plugin in Gsap v3.8 using in Angular 12

Prathap test
Moderator Tag

Recommended Posts

As i was using the angular 12 to build the webapp i'm trying to use the scroll trigger animation in my project, the thing is the initial animation is working fine. But when it comes to ScrollTrigger in doesn't works in angular. I dont know why... I want to target a particular class in HTML to animate it using the scrolltrigger plugin

Link to comment
Share on other sites

Finally i found why Scrolltrigger doesnt work with me.... Becoz the main content in inside the mat-sidenav-content... So that it doesnt works. Is there any solution for implementing the scrollTrigger inside the mat-sidenav-content

Link to comment
Share on other sites

If that's a different scrolling element than the main window, you would need to use the scroller property.

 

Quote
scroller String | Element - By default, the scroller is the viewport itself, but if you'd like to add a ScrollTrigger to a scrollable <div>, for example, just define that as the scroller. You can use selector text like "#elementID" or the element itself.

 

 

  • Like 1
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...