blob: cd5a2933e138a8f6d396bcacd030ed37ec62fc68 (
plain)
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
|
@mixin effects-fountain{
/**
* FOUNTAIN
* When hovering the main button the child buttons
* jump into view from outside the viewport
*/
.mfb-component--tl.mfb-fountain,
.mfb-component--tr.mfb-fountain{
.mfb-component__list{
li{
-webkit-transform: scale(0);
transform: scale(0);
}
@for $i from 1 through $number-of-child-buttons {
$distance: -1 * $button-space * $i;
li:nth-child( #{$i} ) {
-webkit-transform: translateY($distance) scale(0);
transform: translateY($distance) scale(0);
transition: all $slide-speed;
// this is the delay at which the buttons start disappearing
transition-delay: ( $number-of-child-buttons - $i ) * 0.05s;
}
}
}
&[data-mfb-toggle="hover"]:hover,
&[data-mfb-state="open"]{
.mfb-component__list{
@for $i from 1 through $number-of-child-buttons {
$distance: $button-space * $i;
li:nth-child( #{$i} ) {
-webkit-transform: translateY($distance) scale(1);
transform: translateY($distance) scale(1);
// this is the delay at which the buttons appear
transition-delay: $i * 0.05s;
}
}
}
}
}
.mfb-component--bl.mfb-fountain,
.mfb-component--br.mfb-fountain{
.mfb-component__list{
li{
-webkit-transform: scale(0);
transform: scale(0);
}
@for $i from 1 through $number-of-child-buttons {
$distance: $button-space * $i;
li:nth-child( #{$i} ) {
-webkit-transform: translateY($distance) scale(0);
transform: translateY($distance) scale(0);
transition: all $slide-speed;
// this is the delay at which the buttons start disappearing
transition-delay: ( $number-of-child-buttons - $i ) * 0.05s;
}
}
}
&[data-mfb-toggle="hover"]:hover,
&[data-mfb-state="open"]{
.mfb-component__list{
@for $i from 1 through $number-of-child-buttons {
$distance: -1 * $button-space * $i;
li:nth-child( #{$i} ) {
-webkit-transform: translateY($distance) scale(1);
transform: translateY($distance) scale(1);
// this is the delay at which the buttons appear
transition-delay: $i * 0.05s;
}
}
}
}
}
}
|