Skip to content

Commit

Permalink
added blurred spoiler
Browse files Browse the repository at this point in the history
  • Loading branch information
wowthemesnet committed Mar 1, 2019
1 parent 639806b commit cc23feb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -664,4 +664,11 @@ License: https://www.wowthemes.net/freebies-license/
}
.sticky-top-80 {
top:80px;
}

.spoiler {
color: transparent;
text-shadow:0 0 6px rgba(0,0,0,0.2);
transition: all .4s;
cursor:pointer;
}
9 changes: 3 additions & 6 deletions assets/js/mediumish.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,8 @@ jQuery(document).ready(function($){
$('.site-content').css('margin-top', $('header').outerHeight() + 'px');

// spoilers
$("span.spoiler").hide();
$('<a class="reveal">Reveal Spoiler &gt;&gt;</a> ').insertBefore('.spoiler');
$("a.reveal").click(function(){
$(this).parents("p").children("span.spoiler").fadeIn(1500);
$(this).parents("p").children("a.reveal").fadeOut(0);
});
$(document).on('click', '.spoiler', function() {
$(this).removeClass('spoiler');
});

});

0 comments on commit cc23feb

Please sign in to comment.