Hello guys,
I need to set an element in the middle of the page, that scrolls with the page, and fix itself when reaching the header. Similar to what is demonstrated here : Scroll-Then-Fix Content | CSS-Tricks - CSS-Tricks
So, I discovered that translate3D breaks the position:fixed css…
There is a solution here : CSS Position Fixed:
But as you would understand I can’t do that, since I need the element to scroll until it reaches the header.
I tried applying overflow-scroll=“true” to the content. It works if adding
overflow-scroll .scroll {
transform: translate(0, 0);
}
But I lost a lot in functionnalities (related to scrolling for example). Then I need to create a new binding to the scroll element, etc…
Here is a Codepen to play with ( I learned my lesson @mhartington ) : http://codepen.io/JerryBels/pen/pvNGMm
Thanks !