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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="traditional text-security disc" />
  <label>Password</label>
  <input type="password" value="1234567890" />
</form>
  <figcaption>
    <code>-webkit-text-security:disc;</code>Traditional approach for password fields. You only know how many characters you've typed. Perhaps this is a bit overkill on security though?</figcaption>
</figure>

<figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="text-shadow blur" />
  <label>Password</label>
  <input class="shadow-blur" value="qwerty12345" />
</form>
  <figcaption><code>text-shadow:0 0 7px #555,<br> 0 0 10px #000;</code> Works on just about all browsers besides IE. <br> Note that when selecting/highlighting the text in the input it becomes visible, a problem that cannot be remediated with ::selection selector. </figcaption> 
</figure>

<figure>
<form>
  <h1>Sign In</h1>
  <label>Username</label>
  <input value="filter-effects blur" />
  <label>Password</label>
  <div class="filter-blur"><input value="password123" /></div>
</form>
  <figcaption><code>-webkit-filter:blur(3px);</code><strong>Works on Chrome 18+, Safari 6+.</strong><br> Text selection is no longer a problem, but because the CSS3 Filter blurs the entire element (text and border), you'd want to wrap the input in a div with your input style(s).</figcaption> 
</figure>
            
          
!
            
              * { box-sizing:border-box; }

body { background:#555; font-family:"Helvetica", arial; text-align:center; }

figure { display:inline-block; width:280px; height:200px; margin:50px 10px; text-align:left; }

figcaption { transition:opacity 1s ease; opacity:0; text-align:center; font-size:11px; line-height:1.5; color:#aaa; text-shadow:-1px -1px 1px #3a3a3a; }
figure:hover figcaption { opacity:1; }

code { display:block; font-family:monospace; padding:8px 0; font-size:15px; }

form { padding:20px 20px 25px; background:#fff; border-bottom:1px solid #444; box-shadow:0 2px 10px #333; border-radius:2px;}

h1 { padding-bottom:10px; }

label { display:inline-block; font-size:13px; font-weight:bold; padding:10px 3px 3px; }

input, .filter-blur { width:100%; padding:5px 10px; border:3px solid #ddd; border-radius:4px; font-size:17px; }
input:focus, .filter-blur-focused { outline:0; border-color:rgb(94,158,214); }

.shadow-blur { color:transparent; text-shadow:0 0 7px #555, 0 0 10px #000; }
.filter-blur input { border:0; padding:0; margin:0; -webkit-filter:blur(3px); }

            
          
!
            
              $(".filter-blur input").focus(function() {
  $(this).parent().addClass("filter-blur-focused");
});
$(".filter-blur input").blur(function() {
  $(this).parent().removeClass("filter-blur-focused");
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console