-
Notifications
You must be signed in to change notification settings - Fork 0
/
transitions.html
52 lines (42 loc) · 1.3 KB
/
transitions.html
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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transitions</title>
<style>
div {
width: 100px;
height: 100px;
background: red;
transition: width 4s, height 4s;
}
div:hover {
width: 300px;
height: 300px;
}
#div1 {transition-timing-function: linear;} /* Gleiche Geschwindigkeit von Anfang bis Ende */
#div2 {transition-timing-function: ease;} /* Langsamer Anfang, danach schnell, und das Ende wieder langsamer (standart) */
#div3 {transition-timing-function: ease-in;} /* Langsamer Start */
#div4 {transition-timing-function: ease-out;} /* Langsames Ende */
#div5 {transition-timing-function: ease-in-out;} /* Langsamer Start & Ende */
</style>
</head>
<body>
<div id="div1">
<p>Beispiel-Text</p>
</div>
<div id="div2">
<p>Beispiel-Text</p>
</div>
<div id="div3">
<p>Beispiel-Text</p>
</div>
<div id="div4">
<p>Beispiel-Text</p>
</div>
<div id="div5">
<p>Beispiel-Text</p>
</div>
</body>
</html>