css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="password-wrapper">
	<input id="password-field" type="password" class="input" name="password">
	<div class="icon-wrapper">
  	<span toggle="#password-field" class="ion ion-eye field-icon toggle-password"></span>

 <div class="strength-lines">
  <div class="line"></div>
  <div class="line"></div>
  <div class="line"></div>
              // helper
	box-sizing: border-box
	font-size: 62.5%

	padding: 0
	margin: 0
	-webkit-font-smoothing: antialiased
	-moz-osx-font-smoothing: grayscale
	box-sizing: inherit
	&::after, &::before
		box-sizing: inherit

// colors
$red: #e74c3c
$orange: #e67e22
$green: #2ecc71
$blue: #3498db
$white: #fff

$dark-blue-light: #34495e
$dark-blue-heavy: #2c3e50

	background-color: transparent !important
	background-color: $red !important
	background-color: $orange !important
	background-color: $green !important

// mixins
	position: absolute
	top: 50%
	left: 50%
	transform: translate(-50%, -50%)

=size($w, $h)
	width: $w
	height: $h

=font-size($sizeValue: 1.6)
	font-size: ($sizeValue * 10) + px
	font-size: $sizeValue + rem

// styles
	background-color: $blue
		@extend %center
		width: 80%
		max-width: 320px
		border-radius: 5px
		background-color: $white
		overflow: hidden
			border: none
			padding: 10px 15px
			font: small-caption	
			width: calc(100% - 50px)
			color: $dark-blue-light
			outline: none
			line-height: 1.5
			position: relative
			display: inline
			float: right
			+size(50px, 50px)
			background-color: $dark-blue-light
			transition: background-color .25s ease-out
			cursor: pointer
				position: absolute
				top: 11px
				right: 12px
				color: #ccc
				transition: color .25s ease-out
				right: 14px
				transition: background-color .25s ease-out
				background-color: $dark-blue-heavy
					color: $blue
					transition: color .25s ease-in

			position: absolute
			bottom: 2px
			left: 0
			right: 0
			+size(calc(100% - 50px), 6px)
			z-index: 3
				position: absolute
				background-color: transparent
				height: 6px
				border-radius: 2px
				transition: background-color 0.25s ease-in
					left: 33%
					right: 33%
					left: 4px
					right: 68%
					left: 68%
					right: 4px
              $(document).ready(function() {
	// hide/show password
	$(".icon-wrapper").click(function() {
		$(".toggle-password").toggleClass(".ion-eye ion-more");
		var input = $($(".toggle-password").attr("toggle"));
		if (input.attr("type") == "password") {
			input.attr("type", "text");
		} else {
			input.attr("type", "password");

	// strength validation on keyup-event
	$("#password-field").on("keyup", function() {
		var val = $(this).val(),
			color = testPasswordStrength(val);

		styleStrengthLine(color, val);

	// check password strength
	function testPasswordStrength(value) {
		var strongRegex = new RegExp(
			mediumRegex = new RegExp(

		if (strongRegex.test(value)) {
			return "green";
		} else if (mediumRegex.test(value)) {
			return "orange";
		} else {
			return "red";

	function styleStrengthLine(color, value) {
			.removeClass("bg-red bg-orange bg-green")
		if (value) {
			if (color === "red") {
			} else if (color === "orange") {
			} else if (color === "green") {


🕑 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 ..................