A spoiler tag for text & images within a post

Sorry if this has been asked before.

Is it possible to have a spoiler tag (or call it a hide tag) that you can wrap around text & images within a post? Something like: [SPOILER] Text [/SPOILER]. It would only expand if a reader clicks on it. This could be super useful. Not only to hide spoilers but to also hide text and images that would otherwise clutter things up. I would love to have something like this. What do you think?

Could look something like this: example