-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuttonfly.css
More file actions
45 lines (40 loc) · 920 Bytes
/
buttonfly.css
File metadata and controls
45 lines (40 loc) · 920 Bytes
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
.buttonfly {
display: inline-block;
position: relative;
transform-origin: left;
transition: transform 0.1s ease;
}
.buttonfly__wrap {
width: 10000px;
}
.buttonfly--only-wrap-main .buttonfly__wrap {
position: absolute;
}
.buttonfly__row {
display: block;
}
.buttonfly__button {
display: inline-block;
box-sizing: border-box;
width: auto;
height: auto;
margin: 0;
}
.buttonfly__button--child {
/* Transition duration (second value) is being set by the JS. */
/* It's useless to modify it here. */
transition: transform 0.25s ease, opacity 0.25s ease;
}
.buttonfly--hidden .buttonfly__button--child {
transform: scale(0);
opacity: 0;
}
.buttonfly__row--top .buttonfly__button--child {
transform-origin: bottom left;
}
.buttonfly__row--middle .buttonfly__button--child {
transform-origin: left;
}
.buttonfly__row--bottom .buttonfly__button--child {
transform-origin: top left;
}