LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

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

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

body {
  background: #FF7969;
}

.wrapper {
  min-height: 600px;
}
.wrapper .header {
  text-align: center;
  color: white;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 3.5em;
  margin-top: 2em;
  text-shadow: 4px 4px 0px #cc6154;
  -webkit-animation: zoomIn 0.7s;
  -moz-animation: zoomIn 0.7s;
  animation: zoomIn 0.7s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}
@media(max-width: 600px) {
  .wrapper .header {
    font-size: 2em;
  }
}
.wrapper button {
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  left: 50%;
  top: 50%;
  border: none;
  box-shadow: 0px 15px 0px #2a828c, inset 4px 0px 0px #36a7b4, inset -4px 0px 0px #36a7b4;
  border-radius: 20px;
  font-size: 3em;
  padding: 0.5em;
  font-family: Montserrat;
  font-weight: 600italic;
  display: block;
  background-color: #339eaa;
  background-image: -webkit-linear-gradient(-270deg, #339eaa, #3CBAC8);
  background-image: linear-gradient(0deg,#339eaa, #3CBAC8);
  width: 6em;
  color: #f8d8bd;
  text-align: center;
  -webkit-animation: fadeIn 1s;
  -moz-animation: fadeIn 1s;
  animation: fadeIn 1s;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  transition: 0.2s;
}
.wrapper button h3 {
  margin: 0;
  margin-top: -0.15em;
}
.wrapper button:hover {
  box-shadow: 0px 11px 0px #2a828c;
  -webkit-transform: translateX(-50%) translateY(-47%);
  -moz-transform: translateX(-50%) translateY(-47%);
  -ms-transform: translateX(-50%) translateY(-47%);
  -o-transform: translateX(-50%) translateY(-47%);
  transform: translateX(-50%) translateY(-47%);
}
.wrapper button:focus {
  outline: none;
}
.wrapper .modal {
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40em;
  height: 20em;
  border: 3px solid #e66d5f;
  background: #e66d5f;
  display: none;
  -webkit-animation: fadeIn 1.4s;
  -moz-animation: fadeIn 1.4s;
  animation: fadeIn 1.4s;
  box-shadow: 5px 4px 6px #cc6154;
}
.wrapper .modal form {
  text-align: center;
}
.wrapper .modal form input {
  background: #efc8a8;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  font-fmaily: Montserrat;
  margin-top: 0.5em;
  font-size: 1.5em;
  box-shadow: 4px 4px rgba(0, 0, 0, 0.4);
}
.wrapper .modal form input::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-fmaily: Montserrat;
}
.wrapper .modal form input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-fmaily: Montserrat;
}
.wrapper .modal form input:-moz-placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-fmaily: Montserrat;
}
.wrapper .modal form input:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-fmaily: Montserrat;
}
.wrapper .modal form #email {
  width: 15em;
  margin-top: 0.5em;
  border-radius: 10px;
}
.wrapper .modal form #email:focus {
  outline: none;
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  -ms-transform: scale(1.3);
  -o-transform: scale(1.3);
  transform: scale(1.3);
}
.wrapper .modal form #name {
  width: 15em;
  border-radius: 10px;
}
.wrapper .modal form #name:focus {
  outline: none;
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  -ms-transform: scale(1.3);
  -o-transform: scale(1.3);
  transform: scale(1.3);
}
.wrapper .modal form #submit {
  color: white;
  padding: 0.5em 3em;
  margin-top: 0em;
  border-radius: 12px;
  background-color: #3CBAC8;
  background-image: -webkit-linear-gradient(#3CBAC8, #3095a0);
  background-image: linear-gradient(#3CBAC8, #3095a0);
  box-shadow: 0px 8px 0px #2a828c;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  transition: 0.3s;
}
.wrapper .modal form #submit:focus {
  outline: none;
}
.wrapper .modal form #submit:hover {
  box-shadow: 0px 6px 0px #2a828c;
}
.wrapper .modal h1 {
  text-align: center;
  color: white;
  font-family: Montserrat;
  -webkit-animation: rubberBand 1s;
  -moz-animation: rubberBand 1s;
  animation: rubberBand 1s;
  text-shadow: 4px 4px #cc6154;
  font-decoration: underline;
  font-size: 2em;
}
.wrapper .modal h4 {
  text-align: center;
  color: white;
  margin-top: -0.6em;
}
.wrapper .inner {
  top: 8%;
  left: 92%;
  font-weight: 600italic;
  width: 0;
  background: none;
  border: none;
  font-size: 3em;
  text-shadow: 4px 4px #cc6154;
  box-shadow: 0px 0px 0px;
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
  transition: 0.3s linear;
}
.wrapper .inner:hover {
  box-shadow: 0px 0px 0px;
  color: #fdf5ef;
}
JS
$ ->
  $('.x').click ->
    $('.x').css "display", "none"
    $('.modal').css "display", "block"
  $('.inner').click (e) ->
    e.preventDefault()
    $('.x').css "display", "block"
    $('.modal').css "display", "none"
  $('body').submit (e)->
    e.preventDefault()
    $('.x').css "display", "block"
    $('.modal').css "display", "none"
Term
Sat, 01/13/2018 - 16:13

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv