Created
April 18, 2017 22:55
-
-
Save andrewmcnamara/be8fea30ffb87ddb8731d82113b1b92a to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xulepicera
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.box { | |
border: 1px solid black; | |
width: 5px; | |
height: 5px; | |
animation: breath 1s ease-out 0s alternate infinite none running; | |
} | |
.box:hover { | |
transform: scale(-2); | |
} | |
@keyframes stretch { | |
from { height: 20px; width 20px; } | |
to { height: 5px; width 5px; } | |
} | |
.tes { | |
// transition: 1s ease-in-out; | |
} | |
@keyframes breath { | |
0% { | |
transform: scale(1.0); | |
} | |
100% { | |
transform: scale(2.0); | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box"></div> | |
<script id="jsbin-source-css" type="text/css">.box { | |
border: 1px solid black; | |
width: 5px; | |
height: 5px; | |
animation: breath 1s ease-out 0s alternate infinite none running; | |
} | |
.box:hover { | |
transform: scale(-2); | |
} | |
@keyframes stretch { | |
from { height: 20px; width 20px; } | |
to { height: 5px; width 5px; } | |
} | |
.tes { | |
// transition: 1s ease-in-out; | |
} | |
@keyframes breath { | |
0% { | |
transform: scale(1.0); | |
} | |
100% { | |
transform: scale(2.0); | |
} | |
}</script> | |
</body> | |
</html> |
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
.box { | |
border: 1px solid black; | |
width: 5px; | |
height: 5px; | |
animation: breath 1s ease-out 0s alternate infinite none running; | |
} | |
.box:hover { | |
transform: scale(-2); | |
} | |
@keyframes stretch { | |
from { height: 20px; width 20px; } | |
to { height: 5px; width 5px; } | |
} | |
.tes { | |
// transition: 1s ease-in-out; | |
} | |
@keyframes breath { | |
0% { | |
transform: scale(1.0); | |
} | |
100% { | |
transform: scale(2.0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment