<div class="overlay"></div>
<div class="container">
  <section class="content">
    <span class="input">
					<label class="input__label input__label--fade" for="input-13">
						<span class="input__label-content input__label-content--fade">Label one</span>
    </label>
    <input class="input__field input__field--fade" type="text" id="input-13" />
    </span>
    <span class="input">
					<label class="input__label input__label--fade" for="input-14">
						<span class="input__label-content input__label-content--fade">Label two</span>
    </label>
    <input class="input__field input__field--fade" type="text" id="input-14" />
    </span>
    <span class="input">
					<label class="input__label input__label--fade" for="input-15">
						<span class="input__label-content input__label-content--fade">Label 3</span>
    </label>
    <input class="input__field input__field--fade" type="text" id="input-15" />
    </span>
  </section>
</div>
html {
  box-sizing: border-box;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

*, *:before, *:after {
  box-sizing: inherit;
}

:root {
	margin: 0;
	padding: 0;
}
.overlay {
	position: absolute;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5)
}

.container {
	width: 400px;
	height: 400px;
	padding: 1em;
	border-radius: 0.25rem;
	box-shadow: 0 0 1px rgba(0,0,0,0.2);
	margin: auto;
	background: #fff;
	border: solid 1px #d0d0d0;
	position: relative;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}

.input {
	position: relative;
	z-index: 1;
	width: 100%;
	vertical-align: top;
	display: block;
	margin-bottom: 20px;
}

.input__field {
	position: relative;
	padding: 0.8em;
	border: none;
	border-radius: 0.35em;
	background: #f0f0f0;
	color: #aaa;
	font-weight: bold;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-appearance: none; /* for box shadows to show on iOS */
}

.input__field:focus {
	outline: none;
}

.input__label {
	display: inline-block;
	padding: 0 1em;
	color: #6a7989;
	font-weight: bold;
	font-size: 70.25%;
	-webkit-font-smoothing: antialiased;
	user-select: none;
}

.input__label-content {
	position: relative;
	display: block;
	height: 100%;
	width: 100%;
}

.content {
	width: 100%;
}

.input__field--fade {
	width: inherit;
	background: #fff;
	box-shadow: 0px 0px 0px 1px #d0d0d0;
	color: #3296DC;
	-webkit-transition: box-shadow 0.3s;
	transition: box-shadow 0.3s;
}

.input__label--fade {
	padding: 0;
	width: inherit;
	text-align: left;
}

.input__label--fade::after {
	content: '';
  	position: absolute;
  	top: 0;
  	z-index: -1;
  	width: inherit;
  	height: 4em;
	box-shadow: 0px 0px 0px 0px;
	color: rgba(#3296DC, 0.6);
}

.input__field--fade:focus {
	/* Focus Border */
	box-shadow: 0px 0px 0px 2px #3296DC;
}

.input__field--fade:focus + .input__label--fade {
	pointer-events: none;
}

.input__field--fade:focus {
	width: inherit;
	animation: anim-shadow 0.2s forwards;
}

@keyframes anim-shadow {
	99% {
		width: inherit;
		box-shadow: 0px 0px 20px 2px;
    	opacity: 1;
	}
}

.input__label-content--fade {
	padding: 0.75em 0.15em;
}
/*
  Learned from
  https://tympanus.net/Development/TextInputEffects
*/
Rerun