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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

              <span class="input-wrapper">
 <input id="input-pw" class="active-pw" type="password">
 <input id="input-text" class="passive-text" type="text">
 <span class="input-trigger">
		<i class="material-icons icon-1">remove_red_eye</i>
	 <i class="material-icons icon-2">more_horiz</i>
              // 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

	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

$red-light: #e74c3c
$red-dark: #c0392b
$grey-light: #bdc3c7
$grey: #95a5a6
$white: #ecf0f1
$black: #212121

// corpus
	background-color: #e74c3c
	@extend %center
	+size(250px, 50px)
	transition: border-color .25s ease-out
		border-radius: 1px
		position: absolute
		left: 0
		top: 0	
		+size(calc(100% - 54px), 100%)
		padding: 12px 15px
		border: none
		outline: none
		background-color: $white
		color: $black
		transform-origin: center
		font: small-caption	
		border-radius: 1px
		position: relative
		display: inline
		float: right
		+size(50px, 50px)
		background-color: $red-light
		transition: background-color .25s ease-out
		cursor: pointer
			position: absolute
			top: 11px
			right: 12px
			color: $grey-light
			transition: color .25s ease-out
			display: none
			right: 14px
			transition: background-color .25s ease-out
			background-color: $red-dark
				color: #ecf0f1
				transition: color .25s ease-in

	transform: rotateX(180deg) scale(1.05)
	transition: transform .3s ease, opacity .1s .1s ease-out
	opacity: 0
	z-index: 1
	transform: rotateX(0deg) scale(1)
	transition: transform 0.3s ease
	z-index: 2
	opacity: 1

	opacity: 0
	z-index: 1
	transform: rotateX(180deg) scale(1.2)
	transform: rotateX(0deg) scale(1)
	transition: transform .3s ease, opacity .1s .1s ease-out
	opacity: 1
	z-index: 2
              $(() => {
	$("#input-text").on("keyup", () => {
		let tempVal = $("#input-text").val();
	$("#input-pw").on("keyup", () => {
		let tempVal = $("#input-pw").val();
	// rotate input fields + hide/show
	$(".input-trigger").on("click", () => {
		$("#input-text").toggleClass("active-text passive-text");
		$("#input-pw").toggleClass("passive-pw active-pw");

Loading ..................