Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

SPOILER ALERT! - A jQuery Plugin Which Uses Blurs For Hiding Spoilers

DZone's Guide to

SPOILER ALERT! - A jQuery Plugin Which Uses Blurs For Hiding Spoilers

· Web Dev Zone ·
Free Resource

Learn how error monitoring with Sentry closes the gap between the product team and your customers. With Sentry, you can focus on what you do best: building and scaling software that makes your users’ lives better.

SPOILER ALERT! is a jQuery plugin which uses blurs to hide spoilers from readers online. However, SPOILER ALERT!  adds some more bells and whistles to the concept by enabling you to specify maximum blurs and partial blurs.

Maximum blur is used to hide the spoilers completely from the readers. However, upon hover, the partial blurs are applied which makes the content a bit more distinguishable. Finally, clicking upon the blurred content fully reveals the hidden material.

SPOILER ALERT! can not only be used for blurring out spoiler texts, but can also be used for images. This technique for hiding spoilers is a nice change from the usual blacked out or completely hidden text we usually find on website as it keeps the flow of the content essentially the same.

Requirements: jQuery
Demo:http:/ / joshbuddy. github. com/ spoiler-alert/
License: MIT License



What’s the best way to boost the efficiency of your product team and ship with confidence? Check out this ebook to learn how Sentry's real-time error monitoring helps developers stay in their workflow to fix bugs before the user even knows there’s a problem.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}