-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
184 lines (145 loc) · 5.48 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
.circle {
animation-name: voorbeeld1;
animation-duration: 4s;
animation-iteration-count: infinite;
background: red;
width: 100px;
height: 100px;
border-radius: 50%;
}
.button {
background: black;
color: white;
padding: 20px 40px;
font-size: 30px;
display: table;
border-radius: 10px;
transform: translateZ(0);
will-change: transform;
}
/* Hieronder worden CSS TRANSITIONS
in plaats van keyframe animations gebruikt.
Weet je het verschil?
*/
.button:hover {
transition: 1s ease;
background: green;
}
/*
╔════════════════════════════════════════════════╗
║ MAAK HIERONDER JE ANIMATIES! ║
╚════════════════════════════════════════════════╝
*/
/*
Hier typ je de keyframes voor je animaties. Er staat een uitgebreide
"cheat sheet" hier beneden waarina alle CSS declaraties en properties
staan voor het maken van CSS keyframe animaties!!
*/
/*
╔════════════════════════════════════════════════╗
║ ANIMATION PROPERTY VALUES CHEATSHEET!! ║
╚════════════════════════════════════════════════╝
ANIMATION-NAME
Specifies the name of the keyframe you want to bind to the selector
keyframename|none|initial|inherit;
ANIMATION-TIMING-FUNCTION
Specifies the speed curve of the animation
linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end|steps(int,start|end)|cubic-bezier(n,n,n,n)|initial|inherit;
ANIMATION-DURATION
Specifies how many seconds or milliseconds an animation takes to complete
time|initial|inherit;
ANIMATION-DIRECTION
Specifies whether or not the animation should play in reverse on alternate cycles
normal|reverse|alternate|alternate-reverse|initial|inherit;
ANIMATION-FILL-MODE
Specifies what values are applied by the animation outside the time it is executing. for instance, let the animation END and PAUSE at the last keyframe (forwards)
none|forwards|backwards|both|initial|inherit;
ANIMATION-ITERATION-COUNT:
Specifies how many times an animation should be played
number|infinite|initial|inherit;
ANIMATION-PLAY-STATE
Specifies whether the animation is running or paused
paused|running|initial|inherit;
/*
╔════════════════════════════════════════════════╗
║ TRANSFORM PROPERTIES CHEATSHEET!! ║
╚════════════════════════════════════════════════╝
TRANSLATION (MOVING)
translate()
Translates an element
on the 2D plane.
translate3d()
Translates an element
in 3D space.
translateX()
Translates an element
horizontally.
translateY()
Translates an element
vertically.
translateZ()
Translates an element
along the z-axis.
ROTATION
rotate()
Rotates an element around
a fixed point on the 2D plane.
rotate3d()
Rotates an element around
a fixed axis in 3D space.
rotateX()
Rotates an element around
the horizontal axis.
rotateY()
Rotates an element around
the vertical axis.
rotateZ()
Rotates an element around
the z-axis.
SCALING (RESIZING)
scale()
Scales an element
up or down on the 2D plane.
scale3d()
Scales an element
up or down in 3D space.
scaleX()
Scales an element
up or down horizontally.
scaleY()
Scales an element
up or down vertically.
scaleZ()
Scales an element
up or down along the z-axis.
SKEWING (DISTORTION)
skew()
Skews an element
on the 2D plane.
skewX()
Skews an element
in the horizontal direction.
skewY()
Skews an element
in the vertical direction.
*/
/*
╔════════════════════════════════════════════════╗
║ EASE-IN-OUT CHEATSHEET!! ║
╚════════════════════════════════════════════════╝
*/
/* VOORBEELDEN VAN VERTRAGING/VERSNELLING (EASE IN-OUT)
/* transition-timing-function: ease; */
/* transition-timing-function: ease-in; */
/* transition-timing-function: ease-out; */
/* transition-timing-function: ease-in-out; */
/* transition-timing-function: cubic-bezier(0.4, -.2, 0.42, 1.20); */
/* transition-timing-function: steps(7); */
/* transition-timing-function: steps(5, jump-none); */
/* transition-timing-function: steps(8, jump-both); */
/* transition-timing-function: steps(4, jump-start); */
/* transition-timing-function: steps(2, jump-end); */
/* transition-timing-function: step-start; */
/* transition-timing-function: step-end; */
/* transition-timing-function: ease, steps(3), cubic-bezier(1, 0, 0, 1); */
/* }