Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</head>
<body>

<div class="box spin">
<h1>Spin</h1>
<div class="box spin-grow">
<h1>SpinGrow</h1>
</div>
<div class="box move">
<h1>Move</h1>
Expand All @@ -29,11 +29,14 @@ <h1>Grow</h1>
<h1>Shrink</h1>
</div>

<div class="box pullUp">
<div class="box spectrum">
<h2> Pull Up</h2>
</div>
<div class="box pullUp2">
<h2> Pull Up 2</h2>
</div>
<div class="box pulse-move-grow">
<h2>Pulse move grow</p2>
</div>
</body>
</html>
86 changes: 62 additions & 24 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ body{
float: left;
height:25vh;
width:25vh;
border-radius: 10%;
margin: 5px;
display:inline-block;
background-color: skyblue;
}

.spin {
animation-name: spin;
animation-duration: 4s;
.spin-grow:hover {
/*animation-name: spin;*/
/*animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction: reverse;
animation-direction:alternate;*/
animation: spin-grow 5s infinite;
}


.move {
animation-name: move-it;
animation-duration: 5s;
Expand All @@ -42,13 +46,21 @@ body{
animation: shrink 5s infinite;
}

.pullUp{
animation: pullUp 5s infinite;
transform-origin: 50% 100%;
.spectrum{
animation: spectrum 10s infinite;

}
.pullUp2 {
animation: pullUp2 5s infinite;
transform-origin: 50% 100%;
animation: pullUp2 15s infinite;

}

.pulse-move-grow{
animation-name: pulse-move-grow;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-direction: normal;
border-radius: 100%
}

#translate:active{
Expand All @@ -60,12 +72,41 @@ body{
animation-direction: reverse;
}

@keyframes pulse-move-grow {

0%,100% {
transform:
rotate(0deg)
translate(-150px)
rotate(0deg)
scale(1,1);
background-color:red;

}
50% {
transform: rotate(360deg)
translate(-150px)
rotate(-360deg)
scale(2,2);
background-color:purple;

}


}

@keyframes spin {
100%{
transform: rotate(360deg);
}
}

@keyframes spin-grow {
100%{
transform: rotate(360deg) scale(2,2);
}
}

@keyframes move-it {
99%{
transform: translate(50vw);
Expand All @@ -75,10 +116,10 @@ body{

@keyframes pulse {
0%, 100% {
background-color: blue;
background-color: red;
}
50% {
background-color: red;
background-color: purple;
}
}

Expand Down Expand Up @@ -107,27 +148,24 @@ body{

/* http://www.justinaguilar.com/animations/ */

@keyframes pullUp {
@keyframes spectrum {
0% {
transform: scaleY(0.1);
background-color:red;
}
20% {
background-color:orange;
}
40% {
transform: scaleY(1.02);
background-color:yellow;
}
60% {
transform: scaleY(0.98);
background-color:green;
}
80% {
transform: scaleY(1.01);
background-color:blue;
}
100% {
transform: scaleY(0.98);
}
80% {
transform: scaleY(1.01);
}
100% {
transform: scaleY(1);
100% {
background-color:purple;
}
}
@keyframes pullUp2 {
Expand Down