-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathanimations.css
62 lines (57 loc) · 1.42 KB
/
animations.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
.hero,
.wisdom-section .wisdom-content {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
overflow: hidden;
}
.wisdom-image img {
box-shadow:
20px 20px 0 0 rgba(0, 0, 0, 0.2),
40px 40px 0 0 rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease-in-out;
animation: bounce 0.5s ease infinite alternate;
transform-origin: center bottom;
}
.wisdom-image img:is(:hover,:focus) {
box-shadow:
20px 20px 0 0 #E5A186,
40px 40px 0 0 #f8bea7;
}
@keyframes bounce {
from {
transform: translateY(0);
}
to {
transform: translateY(-5px);
}
}
.hero.scrolled,
.wisdom-section .wisdom-content.scrolled {
opacity: 1;
transform: translateY(0);
}
.wisdom-image.scrolled img {
transform: translateX(0);
}
.wave-text span {
display: inline-block;
font-size: inherit;
font-weight: inherit;
color: inherit;
animation: wave 1.5s ease-in-out infinite;
transform-origin: bottom center;
margin: 0 2px;
}
#audio-icon{
height: 50px;
width: 50px;
}
@keyframes wave {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }