The idea is allow frontend user (any site visitor) to show/hide some portions of the posts text (in homepage) by pressing a button.
Show/hide button (switcher of trigger?) should work globaly (this is why it should operate with classes) and keep state after page reload.
A local spoiler is not a solution.
I cannot provide link yet because my site is on localhost of offline machine.