LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
* {
  box-sizing: border-box;
}

.container {
  width: 300px;
  margin: 40px auto 0;
}

button {
  padding: 8px 15px;
  border: 0;
  outline: 0;
  color: #fff;
  background: #1BBC9B;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 0 #18a689;
}
button:active {
  margin-top: 2px;
  box-shadow: 0 2px 0 #18a689;
}

.login-container {
  position: relative;
}

.login-form {
  display: none;
  position: absolute;
  padding: 20px;
  margin-top: 10px;
  background: #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 0 #d0d0d0;
}
.login-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 0;
  outline: 0;
  background: #f1f1f1;
  font-weight: 300;
  font-style: italic;
  border-radius: 2px;
}
.login-form input:last-child {
  margin-bottom: 0;
}
.login-form input[type="submit"] {
  color: #ffF;
  background: #1BBC9B;
  font-style: normal;
  box-shadow: 0 4px 0 #18a689;
}

@-webkit-keyframes slide {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}
@-moz-keyframes slide {
  0% {
    opacity: 0;
    -moz-transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateY(0);
  }
}
@keyframes slide {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -o-transform: translateY(20px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}
.open {
  -webkit-animation: slide 1s;
  -moz-animation: slide 1s;
  animation: slide 1s;
  display: block;
}
JS
$('#login-button').click(function() {
  $('.login-form').toggleClass('open');
})
Host Instantly Drag and Drop Website Builder

 

Description

login dropdown
Term
Wed, 11/29/2017 - 11:21

Related Codes

Pen ID
Pen ID
Pen ID