Over a million developers have joined DZone.

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

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

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



Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}