Closed nathancahill closed 2 years ago
I think just position: relative
is what we needed. I have all demos running and tests passing locally without transform
.
I was considering getting rid of it anyway in order to implement a "sticky" layer feature (like those scrolly-telling articles on NYT and pudding.cool). But you can't have position: sticky
with a transform
above it (and we can't use position: fixed
, because we need overflow: hidden
).
Ah yep, you're absolutely right. I love the position: sticky
bit.
Thanks for again for the contributions, though!
@kindoflew Do you have position: sticky
working in a demo? I had tried it before but it anchors to the bottom of the page.
I have it mostly working in a local branch. Now that we got rid of the transform
, I'll probably finish it up this or next week.
The work in this REPL is what I based it on: https://svelte.dev/repl/bcbfdf1ae4174ebcb384421372f25e23?version=3.46.6
Looks like that is a requirement for using
overflow: hidden
when children elements usetransform
. Added back, the demos work correctly now.