This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.component.html
87 lines (84 loc) · 2.16 KB
/
demo.component.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
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
<section>
<h2>From bottom to top</h2>
<ng-slot-machine-button
[activeOnHover]="true"
[bottomToTop]="true"
>
<ng-slot-machine-wheel>
<div class="idle part">Slot Machine Button</div>
<div class="active part">Slot Machine Button</div>
</ng-slot-machine-wheel>
</ng-slot-machine-button>
</section>
<section>
<h2>Stagger delayed</h2>
<ng-slot-machine-button
[activeOnHover]="true"
>
<ng-slot-machine-wheel
[delay]="0.1"
>
<div class="active part">Slot</div>
<div class="idle part">Slot</div>
</ng-slot-machine-wheel>
<ng-slot-machine-wheel
[delay]="0.2"
>
<div class="active part">Machine</div>
<div class="idle part">Machine</div>
</ng-slot-machine-wheel>
<ng-slot-machine-wheel
[delay]="0.3"
>
<div class="active part">Button</div>
<div class="idle part">Button</div>
</ng-slot-machine-wheel>
</ng-slot-machine-button>
</section>
<section>
<h2>Disable one child</h2>
<ng-slot-machine-button
[activeOnHover]="true"
>
<ng-slot-machine-wheel
[delay]="0.1"
>
<div class="active part">Slot</div>
<div class="idle part">Slot</div>
</ng-slot-machine-wheel>
<ng-slot-machine-wheel
[delay]="0.2"
>
<div class="active part">Machine</div>
<div class="idle part">Machine</div>
</ng-slot-machine-wheel>
<div class="idle part" style="display:inline-flex;vertical-align:top;height:100%">Button</div>
</ng-slot-machine-button>
</section>
<section>
<h2>Fade back</h2>
<ng-slot-machine-button
[activeOnHover]="true"
[fadeBack]="true"
[fadeBackDuration]="0.3"
>
<ng-slot-machine-wheel
[delay]="0.1"
>
<div class="active part">Slot</div>
<div class="idle part">Slot</div>
</ng-slot-machine-wheel>
<ng-slot-machine-wheel
[delay]="0.2"
>
<div class="active part">Machine</div>
<div class="idle part">Machine</div>
</ng-slot-machine-wheel>
<ng-slot-machine-wheel
[delay]="0.3"
>
<div class="active part">Button</div>
<div class="idle part">Button</div>
</ng-slot-machine-wheel>
</ng-slot-machine-button>
</section>