Jump to content
Search Community

Horizontal Scrolling Cards and Pin Parent in the center of the Viewport

Ziafat Ali test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Greetings,

 

I'm trying to create a horizontal-scrolling card layout and want to pin the card's parent in the middle of the viewport, but I don't want the spacing above and below the pin section. Currently, card scrolling works but the parent scrolled away behind the cards. Please take a look at the code pen demo and advise.

 

 

Thank you,

See the Pen WNPQXVr by ziafatali (@ziafatali) 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...