COMPLETE WEB DEVELOPMENT BOOTCAMP:practice.html
practice.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animation</title>
<style>
* {
margin: 0%;
padding: 0%;
/* background-color: blue; */
height: 100%;
width: 100%;
}
.container {
display: flex;
background-color: rgb(255, 157, 0);
/* height:100%;
width: 100%; */
}
.box {
display: flex;
height: 50px;
width: 50px;
border-radius: 50%;
background-color: rgb(238, 255, 0);
text-align: center;
align-items: center;
justify-content: center;
}
#box1{
position: relative;
animation: sk1 1s ease-in-out 1s 2 forwards;
background-color: rgb(249, 21, 249);
}
#box2{
position: relative;
animation: sk2 1.4s ease-in-out 1s 3 forwards;
background-color: rgb(155, 23, 249);
}
#box3{
position: relative;
animation: sk3 1.5s ease-in-out 1s 4 forwards;
background-color: blue;
}
#box4{
position: relative;
animation: sk4 1.6s ease-in-out 1s 5 forwards;
background-color: rgb(24, 240, 24);
}
#box5{
position: relative;
animation: sk5 1.7s ease-in-out 1s 6 forwards;
background-color: yellow;
}
#box6{
position: relative;
animation: sk6 1.8s ease-in-out 1s 7 forwards;
background-color: rgb(251, 13, 13);
}
@keyframes sk1 {
0% {
top:0% ;
left:0% ;
}
25% {
top: 93%; ;
left:0% ;
}
50% {
top:93% ;
left:97% ;
}
75% {
top:0% ;
left:97% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: rgb(251, 13, 13);
}
}
@keyframes sk2 {
0% {
top:0% ;
left:0% ;
}
25% {
top: 93%; ;
left:0% ;
}
50% {
top:0% ;
left:97% ;
}
75% {
top:93% ;
left:97% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: yellow;
}
}
@keyframes sk3 {
0% {
top:0% ;
left:0% ;
}
25% {
top: 46.5%; ;
left:48.5% ;
}
50% {
top:0% ;
left:97% ;
}
75% {
top:93% ;
left:0% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: rgb(24, 240, 24);
}
}
@keyframes sk4 {
0% {
top:93% ;
left:0% ;
}
25% {
top: 46.5%; ;
left:48.5% ;
}
50% {
top:93% ;
left:97% ;
}
75% {
top:0% ;
left:0% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: blue;
}
}
@keyframes sk5 {
0% {
top:0% ;
left:48.5% ;
}
25% {
top: 46.5%; ;
left:48.5% ;
}
50% {
top:93% ;
left:97% ;
}
75% {
top:93% ;
left:0% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: rgb(155, 23, 249);
}
}
@keyframes sk6 {
0% {
top:93% ;
left:48.5% ;
}
25% {
top: 46.5%; ;
left:48.5% ;
}
50% {
top:0% ;
left:97% ;
}
75% {
top:0% ;
left:0% ;
}
100% {
top:0% ;
left:0% ;
}
from{
}
to{
background-color: rgb(249, 21, 249);
}
}
</style>
</head>
<body>
<div class="container">
<div class="box" id="box1">S</div>
<div class="box" id="box2">A</div>
<div class="box" id="box3">U</div>
<div class="box" id="box4">R</div>
<div class="box" id="box5">A</div>
<div class="box" id="box6">V</div>
</div>
</body>
</html>
Comments