-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.css
80 lines (80 loc) · 1.23 KB
/
demo.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
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.5;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: inherit;
}
body {
margin: 0;
}
button {
font-size: 1rem;
padding: 0;
outline: none;
cursor: pointer;
}
body {
padding: 0 1em;
}
.scrollable {
height: 300px;
overflow: auto;
background: #DDD;
-webkit-transition: all .2s ease;
transition: all .2s ease;
}
.scrollable::after {
content: "";
display: block;
height: 1000px;
}
.child {
background: #FAFFAC;
}
.child.scrolledge-reached {
-webkit-animation: bounce .2s ease 1;
animation: bounce .2s ease 1;
}
@-webkit-keyframes bounce {
50% {
-webkit-transform: translateY(20px);
transform: translateY(20px);
}
100% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes bounce {
50% {
-webkit-transform: translateY(20px);
transform: translateY(20px);
}
100% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
main {
position: relative;
}
scrolly-data {
position: absolute;
top: 0;
left: 0;
}
.event-list {
width: 100%;
}
.event-list__item {
text-align: left;
}