-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathstyle.css
83 lines (76 loc) · 1.58 KB
/
style.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
75
76
77
78
79
80
81
82
83
/* Basic style */
:root {
--primary: #fff;
--secondary: #050840;
--highlight-primary: #7ce7c9;
--highlight-secondary: #9d7beb;
--radius: 0.5rem;
--pill: 2rem;
--line: 0.1rem;
}
* {
box-sizing: border-box;
}
body {
margin: 2rem;
padding: 0;
font-family: 'Open Sans', sans-serif;
font-size: 2rem;
background: var(--secondary);
}
section {
max-width: 90vw;
}
a {
display: inline-block;
margin: 0.2em;
padding: 0.4em 0.8em;
background: var(--secondary);
color: var(--highlight-primary);
border: var(--line) solid var(--highlight-primary);
border-radius: var(--pill);
font-weight: normal;
text-decoration: none;
&:hover, &:focus {
color: var(--primary);
border-color: var(--primary);
}
}
/* UI Event Classes */
/* Jump animation on the interaction link */
a[href="#interaction"] {
position: relative;
background: var(--highlight-secondary);
color: var(--secondary);
border-color: var(--secondary);
}
.jump {
animation-name: jump;
animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
animation-duration: 1.2s;
animation-iteration-count: 1;
}
@keyframes jump {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(1.1, 0.9) translateY(0);
}
30% {
transform: scale(0.9, 1.1) translateY(-5rem) rotate(10deg);
}
50% {
transform: scale(1.05, 0.95) translateY(0);
}
57% {
transform: scale(1, 1) translateY(-0.5rem) rotate(-2deg);
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
/* Hieronder komen jouw animaties */