- Overview
- Documents
Spoiler alert is jquery plugin that don't spoil it! Hide anything with a bit of blur. Hint on mouseover. Reveal on click.
Tested browsers
- Chrome
- Safari
- Firefox
- Mobile Safari
Source: joshbuddy.github.io
Jun 25, 2014 in Animation 3318 views
Spoiler alert is jquery plugin that don't spoil it! Hide anything with a bit of blur. Hint on mouseover. Reveal on click.
Source: joshbuddy.github.io
1. INCLUDE JS FILES
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="spoiler.js"></script>
2. HTML
<img class="spoiler" src="http://placekitten.com/440/280">
3. JAVASCRIPT
$('.spoiler').spoilerAlert({max: 20, partial: 6});
4. OPTIONS
max: 4, partial: 2, hintText: 'Click to reveal completely'
Tagged with:
spoiler alert
spoil
hide copy
hide images
svg blur
taste on mouseover
eat on click
hide spoilers
hint on mouseover
reveal on click
Related Articles