Content overlay on top of footer
Hey guys, this seemingly simple overlay effect has stumped me. I came across this cool overlay effect where the main content is on top of the footer on this website: https://www.eatsleepwork.com/
I copy and pasted the relevant bits I found in their code in codepen and it doesn't work. I'm really confused on what I'm missing here.
https://codepen.io/vince1444/pen/oNQzZpa
12 Replies
Came across another site that does it too: https://bff.co/
They pretty much follow the same exact approach. Not sure what I'm missing here 😅
thomasbobs
CodePen
Fixed Footer Reveal
An experiment involving a fixed footer that reveals from behind the main page content on-scroll. Results in a very pleasing effect that is just a bit d...
Thanks! I modified it and it still works
I'm so confused what I did wrong compared to this
lol
I stripped out all the code from that codepen to this:
Which is what I have in my original codepen
😂
Lol I legitimately think this codepen is bugged somehow
your background on main is transparent
I have it in split screen view and they're both almost the exact same
omg.
I've been looking at this perplexed for 20 minutes, until I saw your
main
text scroll through the letters on footer
I saw that and I guess it just didn't register for me 😂 I've been sitting here for like an hour so confused
I thought your
footer
rule wasn't getting applied properly cause it has color: white
, but turns out it's just the background on the main
showing the footer regardlessLmao I don't think I would have figured that out anytime soon, thank you so much guys