-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anime.txt
64 lines (60 loc) · 1.66 KB
/
Anime.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/anime.css">
<title>Document</title>
</head>
<body>
<div class="box"></div>
<!-- <div class="square"></div> -->
</body>
</html>
<!--Some Changes that is happening based on some event,for example u have a square and u want to change the colour
when u hover it or active and transition should happen gradually-->
<!-- If the colour or some changes is happening without any action or hover then that is animation-->
[11:01 AM] Maria (Unverified)
llll
[11:01 AM] Maria (Unverified)
.square{
width:300px;
height:300px;
background-color: aquamarine;
/* transition-duration: 3s;
transition-property: background-color;
transition-timing-function: cubic-bezier(1,-0.35, 1, 1.21);
transition-delay:1s; */
/* transition:background-color 3s 1s linear; */
}
.square:hover{
/* background-color: blueviolet;
width:600px; */
transform:translateY(-50px);
}
.box{
width:100px;
height:100px;
border-radius: 50%;
position:relative;
background-color:lightcoral;
animation-name:circle;
animation-duration: 3s;
animation-fill-mode: forwards;
animation-iteration-count: 10;
}
@keyframes circle {
0%{
background-color:darkmagenta;
left:0px;
top:0px;
}
100%{
background-color: cornflowerblue;
width:300px;
height:300px;
left:600px;
top:600px;
}
}