Created
June 26, 2017 14:56
-
-
Save anonymous/6a98e652bc52ce8ae18f0dc3ed28dc54 to your computer and use it in GitHub Desktop.
vZevOX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<div class="input-group input-group-lg "> | |
<span class="input-group-addon" id="UnInd">@</span> | |
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1" pattern="([A-Z]){4}-([a-z]){4}"> | |
</div> | |
<small id="fileHelp" class="form-text text-muted">Input Your Username</small> | |
</form> | |
<div class="anim"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("input").on("change",()=>{ | |
var result = $("form")[0].checkValidity(); | |
if(result){ | |
$("div.input-group").removeClass("has-danger"); $("div.input-group").addClass("has-success"); | |
}else{ | |
$("div.input-group").removeClass("has-success"); $("div.input-group").addClass("has-danger"); | |
} | |
console.log("Ev"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.anim{ | |
background-image:url(http://i.imgur.com/af1RSLn.png); | |
background-size:cover; | |
width: 200px; | |
height: 200px; | |
} | |
.anim{ | |
animation: animationFrames linear 6s; | |
animation-iteration-count: infinite; | |
transform-origin: 50% 50%; | |
animation-fill-mode:forwards; /*when the spec is finished*/ | |
} | |
.anim:hover{ | |
animation: animationFrames linear 2s; | |
animation-iteration-count: infinite; | |
transform-origin: 50% 50%; | |
animation-fill-mode:forwards; /*when the spec is finished*/ | |
} | |
@keyframes animationFrames{ | |
0% { | |
transform: rotate(360deg) ; | |
} | |
100% { | |
transform: rotate(0deg) ; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment