Jump to content
Search Community

NoMore321

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by NoMore321

  1. Hey guys!

     

    I'm having difficulty making a column sticky within the 'layered pinning with variable height' demo you guys created. I've forked the pen and added columns.

     

    Obviously position: sticky with a top value does nothing, but I'm surprised that I can't easily pin the column either. I've tried a variety of triggers and start and end points. Some assistance would be greatly appreciated!

     

    (The right-hand column should only be pinned to the end of the left-hand column)

     

     

    See the Pen 7e8402b1bae38bd08128c8e84630e3a3 by brynb (@brynb) on CodePen

  2. I've recreated my issue with a simplified CodePen.

     

    Without ScrollSmoother active, the middle (non-sticky) column scrolls perfectly as you'd expect while the other two columns remain in place.

     

    Once ScrollSmoother is active, the height of the section is borked and no sticky scrolling occurs. What can I do to enjoy ScrollSmoother whilst still using sticky here and there as needed? (I've commented out the ScrollSmoother code in the CodePen - it's there to play with)

     

    Thanks in advance!

    See the Pen 3e45cd0ec5f8842a9d99db2c88b5ced2 by brynb (@brynb) on CodePen

    • Like 1
×
×
  • Create New...