Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
goodcontext

I have a question about scrollsmoother.

Go to solution Solved by goodcontext,

Recommended Posts

Hello.
Like "position: fixed;" the background image is at the top.
#wrapper has "position: relative;", but it doesn't go down, it's at the top.
You can see the overlapping images by setting the opacity value to 0.5.

The position value is not fixed, why is this happening?

See the Pen oNEBpVv by goodcontext (@goodcontext) on CodePen

Link to comment
Share on other sites

  • Solution

I found the answer myself.
That's because the background image has "data-speed: 0.1".
#wrapper has a "position: fixed;" value, so it works well when I put a background image outside #wrapper.

I don't know, but I think if you put the value "data-speed: 0.1", the "position: fixed;" attribute will also be automatically added.
I don't know how to erase this topic, so I'll just leave it.

 

See the Pen rNJjdZm by goodcontext (@goodcontext) on CodePen

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