It's a shame this didn't get more traction. I've not thought a lot about using spoilers for images, so my comment is for text only...
My ideal version of the spoiler tag would allow the text to be toggled on/off. Sometimes you want to take a quick peek at a multi-line spoiler and toggle off when you think you've read enough.
TVTropes.org implements this very well on their pages. Just click on any folder to see it in action:
The following implementation is also nice. It covers the spoiler section with a nice bright text warning and feels like the kind of attributes a spoiler tag should have (ie; BG/FG color, maybe FX like fade in, etc). Click on [View Demo] to see it in action:
My ideal version of the spoiler tag would allow the text to be toggled on/off. Sometimes you want to take a quick peek at a multi-line spoiler and toggle off when you think you've read enough.
TVTropes.org implements this very well on their pages. Just click on any folder to see it in action:
https://tvtropes.org/pmwiki/pmwiki.php/Franchise/MarvelCinem...
The following implementation is also nice. It covers the spoiler section with a nice bright text warning and feels like the kind of attributes a spoiler tag should have (ie; BG/FG color, maybe FX like fade in, etc). Click on [View Demo] to see it in action:
https://css-tricks.com/fade-in-spoiler-revealer/
It does lack the ability to toggle (on/off). I've been using this method on the few occasions I've needed a spoiler tag.