-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
58 lines (54 loc) · 1.15 KB
/
styles.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
body, html {
height: 100%;
}
body {
background-color: #FFF8DB;
color: #3B3216;
}
.transition .plant-stalk,
.transition .plant-flower,
.transition .plant-fruit {
animation: transition 1s infinite cubic-bezier(.36,.07,.19,.97) both;
transform: translate3d(0, 0, 0);
transform-origin: center center;
backface-visibility: hidden;
perspective: 1000px;
}
@keyframes transition {
10%, 30% {
transform: scale(0.9, 0.9);
}
20% {
transform: scale(0.8, 0.8);
}
50% {
transform: translate3d(-1px, 1px, 0) rotate(1deg);
}
55% {
transform: translate3d(1px, -1px, 0) rotate(-1deg);
}
60% {
transform: translate3d(-2px, 4px, 0) rotate(1deg);
}
65% {
transform: translate3d(2px, 2px, 0) rotate(-1deg);
}
70% {
transform: translate3d(-3px, -2px, 0) rotate(1deg);
}
75% {
transform: translate3d(3px, 0, 0) rotate(-1deg);
}
80% {
transform: translate3d(-4px, 0, 0) rotate(5deg);
}
85% {
transform: translate3d(4px, 0, 0) rotate(-5deg);
}
90% {
transform: translate3d(-5px, 0, 0) rotate(5deg) scale(1.2, 1.2);
}
95% {
transform: translate3d(5px, 0, 0) rotate(-5deg) scale(1.4, 1.4);
}
}