-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_rectangle-animation.css
75 lines (57 loc) · 1.16 KB
/
test_rectangle-animation.css
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
65
66
67
68
69
70
71
72
73
74
#frame {
width: 100%;
height: 100%;
position: absolute;
}
.square {
width: 50px;
height: 50px;
position: relative;
/* https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode */
mix-blend-mode: difference;
z-index: 1000;
}
/* ------ */
/* colors */
.red {
background-color: #ffcccc;
}
.blue {
background-color: #0000ff;
}
/* ---------- */
/* animations */
.clockwise {
animation-name: example;
animation-duration: 4s;
animation-iteration-count: infinite;
}
.alternate {
animation-direction: alternate;
}
.alternate-reverse {
animation-direction: alternate-reverse;
}
/*.bg-video {
animation-name: scroll;
animation-duration: 300s;
z-index: -99999;
}
*/
@keyframes example {
0% {transform: translate(0px,0px);}
25% {transform: translate(200px,0px);}
50% {transform: translate(200px,200px); width: 400px;}
75% {transform: translate(0px,200px);}
100% {transform: translate(0px,0px); width: 200px;}
}
@keyframes scroll {
0% {transform: translate(0px,0px);}
100% {transform: translate(0px,10000px);}
}
/* ---------------- */
/*flexbox*/
.flex-container {
display: flex;
flex-direction: column;
}