LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
.ui.submit {
  padding: 5.25% 6%;
  background: #006e63;
  cursor: pointer;
  color: #f2f2f2;
  font-size: 12.5px;
  border: none;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  width: 100%;
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.ui.submit:hover, .ui.submit:focus {
  outline: none;
  background: #00a191;
}

body {
  background: #181c25;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
body h1 {
  color: #f2f2f2;
}
body a {
  color: #f2f2f2;
  text-decoration: none;
}
body a:hover {
  color: #006e63;
  text-decoration: underline;
}

.login-box {
  text-align: center;
  width: 400px;
  height: 300px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: #181c25;
}
.login-box .logo-big {
  width: 110px;
  height: 30px;
  margin: 20px auto;
  background: url(https://storage.jumpshare.com/preview/dUPb1ejGehDIfxSusy7smUMebwnqAQM1rPV-psY2S1BjDpWXUoq2qnpZQiQE98WesdqzqrZhfyqgAK_dkk0UIA);
  background-size: 100% 100%;
}
.login-box .in {
  background: #f2f2f2;
  margin: 5px 0;
  padding: 12px 0;
  border: 2px solid #8e9299;
  outline: none;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.login-box .in span {
  font-size: 22px;
  padding-right: 10px;
  color: #ddd;
  display: inline-block;
  vertical-align: middle;
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.login-box .in input {
  width: 85%;
  display: inline-block;
  vertical-align: middle;
  border: none;
  background: none;
  outline: none;
}
.login-box .in:hover {
  border-color: #006e63;
}
.login-box .in:hover span {
  color: #006e63;
}
.login-box a {
  padding: 20px 0;
  display: block;
}
.login-box .welcome {
  text-align: center;
  position: absolute;
  visibility: hidden;
  top: 50%;
  left: 50%;
  margin-left: -75px;
  margin-top: -110.5px;
  opacity: 0;
  -moz-transform: scale(0, 0);
  -ms-transform: scale(0, 0);
  -webkit-transform: scale(0, 0);
  transform: scale(0, 0);
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.login-box .welcome .pic {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background-size: 100% 100%;
  border: 5px solid #00a191;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.login-box .welcome .ball-loader {
  padding: 20px 0;
  -webkit-animation: loader infinite linear;
  -moz-animation: loader infinite linear;
  -o-animation: loader infinite linear;
}
.login-box .welcome .ball-loader .ball {
  width: 10px;
  display: inline-block;
  vertical-align: middle;
  margin: 5px;
  height: 10px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #8e9299;
  transform: scale(0.1);
  animation: loader .8s ease-in-out infinite alternate;
  -webkit-animation: loader .8s ease-in-out infinite alternate;
}
.login-box .welcome .ball-loader .ball:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.login-box .welcome .ball-loader .ball:nth-child(3) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
.login-box .welcome.show {
  visibility: visible;
  opacity: 1;
  -moz-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
}

@-webkit-keyframes loader {
  to {
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    background: #f2f2f2;
  }
}
@keyframes loader {
  to {
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    background: #f2f2f2;
  }
}
JS
$(function () {
  
  	 /**
	  * Make Login
	  */
	 $("#makeLogin").on("submit", function (e) {
	 	e.preventDefault();

	 	var data = {
	 		pic: "https://scontent-b-mad.xx.fbcdn.net/hphotos-xfp1/t31.0-8/10661769_806878329370637_8561726373864390758_o.jpg"
	 	}

	 	// Make Ajax Call
	 	// Get the data
      // Later on
	 	// Set the data to var
      
      // Set user pic to the div
	 	$(".welcome .pic").css("background-image", "url(" + data.pic + ")");
	 	

	 	// Animated login
	 	$(this).fadeOut("fast", function () {
	 		$(".welcome").addClass("show");
	 	});

	 });
  
});
Host Instantly Drag and Drop Website Builder

 

Term
Wed, 11/29/2017 - 11:23

Related Codes

Pen ID
Pen ID
Pen ID