LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Account Login

forgot password?

CSS
body {
  width: 320px;
  margin: 0 auto;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 300;
  background: #ccc;
}
@-webkit-keyframes enlarge {
  0% {
    padding: 15px 0;
  }
  100% {
    padding: 30px 0;
  }
}
@-webkit-keyframes reset {
  0% {
    padding: 30px 0;
  }
  100% {
    padding: 15px 0;
  }
}
/* Begin Login Form Component */
fieldset {
  border: none;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  margin-top: 10%;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: solid 1px #333;
}
fieldset h2 {
  color: #0099ff;
  margin: 0;
  font-weight: normal;
  padding-bottom: 20px;
  text-align: center;
}
fieldset .input:last-of-type {
  margin-bottom: 10px;
}
fieldset input {
  -webkit-appearance: none;
  border: none;
  border-bottom: dotted 1px #cccccc;
  background: none;
  padding: 15px 0;
  display: block;
  width: 100%;
  color: #6db70e;
  animation: reset 400ms;
  -webkit-animation: reset 400ms;
}
fieldset input:focus {
  border-bottom: dotted 1px #0099ff;
  outline: none;
  color: #0099ff;
  padding: 30px 0;
  animation: enlarge 400ms;
  -webkit-animation: enlarge 400ms;
}
fieldset input:focus::-webkit-input-placeholder {
  color: #0099ff;
}
fieldset button {
  -webkit-appearance: none;
  padding: 12px 16px;
  background: #0099ff;
  border: none;
  color: white;
}
fieldset .mute {
  color: #666666;
  font-size: 14px;
  font-weight: 100;
}
fieldset .right {
  float: right;
}
Host Instantly Drag and Drop Website Builder

 

Description

Playing around with different ways to display focus and placeholder text when filling out a form.
Term
Wed, 11/29/2017 - 11:25

Related Codes

Pen ID
Pen ID