3 ms·
It’s broken on Dark Mode. Needs an extra bit of CSS to determine whether it’s in dark mode or not. The top example is just a GIF, so that's whatever - but the
by lostgame 5y ago
It’s broken on Dark Mode. Needs an extra bit of CSS to determine whether it’s in dark mode or not.
The top example is just a GIF, so that's whatever - but the bottom example, which is actual text using this CSS trick, flickers white in a way that unfortunately ruins the illusion of the experience with a black background.
The code needs to use CSS's 'prefers-color-scheme' to differ between background colours for the effect.
This could also be used, for that matter; to auto-invert the 'text' colour. :)