-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathanimation.css
More file actions
51 lines (48 loc) · 893 Bytes
/
animation.css
File metadata and controls
51 lines (48 loc) · 893 Bytes
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
*,*::before,*::after{
box-sizing: border-box;
margin-top: 0;
}
a[href]{
color: orange;
}
.container{
background-color: aquamarine;
}
.box{
background-color: red;
height: 10%;
width: 10%;
/*Position need to be relative to make the box animation outside the container*/
position: relative;
/*This is the ideal format for making it in a one line*/
/* animation: name duration timing-function delay iteration-count direction fill-mode; */
animation: learn 5s infinite forwards;
}
/*This is % method*/
@keyframes learn{
0%{
left: 0;
top: 100;
}
25%{
left: 100;
top: 100;
}
75%{
left: 100;
top: 0;
}
100%{
left: 0;
top: 0;
}
}
/* This was from and to method
@keyframes learn{
from{
width: 10%;
}
to{
width: 100%;
}
} */