Jump to content
Search Community

How to pin siblings of a pinned container

TechnoTramp test
Moderator Tag

Recommended Posts

Is there a way to pin a pinned container siblings to the pinned container?

 

In the codepan I have the green sticky container inside it's spacer. I've made the spacer beacouse I want some distance ,while scrolling that, I can see the sticky block longer, and do some animations. But the sticky block spacer siblings will be pushed out of viewport when the sticky block is smaller in height then viewport. So I want to make the siblings to be sticky to the sticky container. Is it possible? I've  success in resolving the issue in vanilla js, but with blinking issues on iOS 14.

 

Codepan

See the Pen wvNxLQV by iodzqkcj-the-styleful (@iodzqkcj-the-styleful) 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.
×
×
  • Create New...