-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abhaykumar-0285
committed
Nov 21, 2023
1 parent
15107a9
commit 80f79d5
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
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> |