Skip to content

Using "sticky"element offsets parallax container #292

Open
@moseleyi

Description

@moseleyi

I use a wrapper with logo and navigation as a position:sticky element but I change its size when somebody scrolls past 100px to take up less space.

Unfortunately both versions of the script make the parallax-mirror to shift.

Here is the image:
image

Basically onload it's aligned with the brown container. But once I start scrolling it also moves down by the difference of height of the sticky element..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions