A 404 page is the one place where you're allowed to be silly. I made three small packages that let visitors wreck the page they are on: a black hole that swallows it, a spaceship that shoots it to bits, and a snap that turns half of it to dust. Each one has a "Put it back" button, and that button was the hard part.
Try them: https://fluri.xyz/black-hole/ · https://fluri.xyz/page-asteroids/ · https://fluri.xyz/page-snap/
<script src = "https://cdn.jsdelivr.net/npm/@fluritheme/black-hole@1/dist/black-hole.global.js" data-auto ></script>
Enter fullscreen mode
Exit fullscreen mode
All three are free, MIT and have zero dependencies. They start from a small button, the Konami code, a timer or your own code.
Rule one: never touch the layout
If you remove or move real elements, the page reflows, things jump, and you can't promise to restore it. So the page is only ever changed with transform , opacity , clip-path and visibility , which don't affect layout.…