Jump to content
Search Community

Scrolltrigger sprite animation in nextjs is not working

Tal Kleiner test
Moderator Tag

Recommended Posts

3 hours ago, GreenSock said:

It's just CSS stuff. You've wrapped everything in 2 <div> elements that don't have height: 100%, so it's throwing everything off. I assume you wanted to do something more like this?:

https://stackblitz.com/edit/nextjs-zghs7e?file=styles%2Fglobals.css,pages%2Findex.js

 

Right? 

ok yeah so the problem in my project is that the container is overflow: hidden, position: relative
https://stackblitz.com/edit/nextjs-x4kkrj?file=styles%2Fglobals.css
I edited your solution with my css of the container

if I put height 100%, it will obviously not scroll

what are my options?

it's not a new project so I don't see me changing the overflow: hidden to something else,

is there a workaround it?

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...