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

Should you build your own web experimentation solution? Download this whitepaper by Optimizely to find out.

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



Implementing an Experimentation Solution: Choosing whether to build or buy?

Topics:

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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}