LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

  


CSS
.container {
  margin: 0 auto;
  text-align: center;
}

.mu-container {
  font-size: 16px;
  line-height: 24px;
  width: 256px;
  height: 72px;
  display: inline-block;
  position: relative;
  font-family: 'Roboto Condensed', sans-serif;
  transition: height 200ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  background-color: #fff;
}
.mu-container > label {
  top: 38px;
  left: 0px;
  font-size: 20px;
  font-weight: normal;
  position: absolute;
  line-height: 22px;
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  z-index: 1;
  cursor: text;
  -webkit-transform: scale(1) translate(0px, 0px);
          transform: scale(1) translate(0px, 0px);
  -webkit-transform-origin: left top 0px;
          transform-origin: left top 0px;
  pointer-events: none;
  color: #9fa3ad;
  -webkit-user-select: none;
  margin-bottom: 0;
}
.mu-container > .placeholder {
  position: absolute;
  opacity: 0;
  color: rgba(0, 0, 0, 0.298039);
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  bottom: 12px;
}
.mu-container > input {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  padding: 0px;
  position: relative;
  width: 100%;
  border: none;
  outline: none;
  color: #5e6168;
  cursor: initial;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  font-size: 22px;
  line-height: inherit;
  font-family: inherit;
  height: 100%;
  box-sizing: border-box;
  box-shadow: none;
  margin-top: 14px;
  background-color: rgba(0, 0, 0, 0);
  z-index: 0;
}
.mu-container > input:focus {
  outline: none;
}
.mu-container > input:focus ~ label {
  -webkit-transform: scale(0.72) translate(0px, -28px);
          transform: scale(0.72) translate(0px, -28px);
  color: #399bda;
}
.mu-container > input:valid ~ label {
  -webkit-transform: scale(0.72) translate(0px, -28px);
          transform: scale(0.72) translate(0px, -28px);
  color: #9fa3ad;
}
.mu-container > input:focus ~ .hr-container > :last-child {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}
.mu-container > input:focus ~ .placeholder {
  opacity: 1;
}
.mu-container > input:valid ~ .placeholder {
  opacity: 0;
}
.mu-container > input::-ms-clear {
  display: none;
}
.mu-container > .hr-container > :first-child {
  border-bottom-width: 1px;
  border-style: none none solid;
  border-color: #e0e0e0;
  bottom: 8px;
  box-sizing: content-box;
  margin: 0px;
  position: absolute;
  width: 100%;
}
.mu-container > .hr-container > :last-child {
  border-bottom-width: 2px;
  border-style: none none solid;
  border-color: #399bda;
  bottom: 8px;
  box-sizing: content-box;
  margin: 0px;
  position: absolute;
  width: 100%;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  -webkit-transform-origin: left;
          transform-origin: left;
}
.mu-container > .hr-container > :last-child.hr-container__error {
  border-color: #f44336;
}
.mu-container .error-message {
  left: 0px;
  bottom: 15px;
  text-align: left;
  opacity: 1;
  position: relative;
  font-size: 14px;
  line-height: 12px;
  color: #f44336;
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
Term
Sat, 04/14/2018 - 20:42

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv