Skip to content

Commit

Permalink
CSS Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaykumar-0285 committed Nov 21, 2023
1 parent 15107a9 commit 80f79d5
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions video 46/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Animations</title>
<style>
.container{
background-color: rgb(9, 106, 106);
height: 80vh;
width: 30vw;
}

.box{
width: 34px;
height: 45px;
/* animation-name: harryKaAnimation;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0, 0, 0, 0.96);
animation-delay: 1s;
animation-direction: reverse;
animation-play-state: paused; */
/* animation: name duration timing-function delay iteration-count direction fill-mode; */
animation: harryKaAnimation 2s ease-in-out 3s 1,
harry2 3s ease-in-out 3s 1;
}

@keyframes harryKaAnimation {
from{
background-color: red;
}
to{
background-color: yellow;
}
}

@keyframes harry2 {
0%{
transform: rotate(100deg);
}
20%{
transform: rotate(200deg);
}
50%{
transform: rotate(220deg);
}
80%{
transform: rotate(300deg);
}
100%{
transform: rotate(310deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="box">
Box
</div>
</div>
</body>
</html>

0 comments on commit 80f79d5

Please sign in to comment.