cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <p>Game of Thrones Spoilers via <a href="http://comicbook.com/blog/2014/06/03/game-of-thrones-spoiler-lena-headey-hints-at-someones-return/">Comicbook.com</a></p>
<div class="spoiler on">
  Catelyn, in her new persona as Lady Stoneheart, takes over leadership of the Brotherhood without Banners and sets them on a much more vengeful path, hunting down anyone she feels is responsible for the fall of House Stark and the crimes committed at the Red Wedding. I had assumed that she would make her first appearance in the Season 4 finale, but if Headey is already leaving hints for fans then its possible she’ll show up in this week’s episode.
</div>
            
          
!
            
              * { box-sizing: border-box; font-family: arial; }
p { text-align: center; margin-bottom: 100px; }

.spoiler { width: 50%; margin: 0 auto; cursor: pointer; position: relative; font-size: .9em; }
.spoiler.on { color: rgba(0,0,0,0); text-shadow: 0 0 10px #000; }
.spoiler.on:before { content: 'Show Spoiler Text'; position: absolute; text-shadow: none; color: #fff; width: 140px; height: 28px; line-height: 28px; text-align: center; left: 50%; top: 50%; background-color: #233870; margin-left: -70px; margin-top: -14px; }

            
          
!
            
              $(document).ready(function () {
  
  $(document).on('click', '.spoiler', function() {
    $(this).removeClass('on');
  });
});
            
          
!
999px
Loading ..................

Console