Skip to content

Instantly share code, notes, and snippets.

@andrewmcnamara
Created April 18, 2017 22:55
Show Gist options
  • Save andrewmcnamara/be8fea30ffb87ddb8731d82113b1b92a to your computer and use it in GitHub Desktop.
Save andrewmcnamara/be8fea30ffb87ddb8731d82113b1b92a to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xulepicera
<!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>
.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