/
demo.scss
88 lines (77 loc) · 1.9 KB
/
demo.scss
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
88
@import "packages/wsk_material/sass/styleguide_demo_bp";
@import "packages/wsk_material/sass/card/card";
@import "packages/wsk_material/sass/shadow/shadow";
@import "packages/wsk_material/sass/animation/animation";
.PreviewBlock {
height: 200px;
padding: 0;
background: none;
}
.demo-animate-container {
position: relative;
overflow: hidden;
margin: 0;
padding: 0;
width: 300px;
height: 100%;
text-align: center;
background-color: #ddd;
}
.demo-animate-container--foreground {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 100;
}
.demo-animate-container--background {
line-height: 200px;
z-index: -100;
}
// Outside the view, on the left.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.demo-position-1 {
left: -102px;
@include material-animation-fast-out-linear-in();
}
// Left side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.demo-position-2 {
left: 20px;
@include material-animation-linear-out-slow-in();
}
// Right side.
// We're always visible when moving to this state, so we use default.
.demo-position-3 {
left: 180px;
@include material-animation-default();
}
// Outside the view, on the right.
// We leave the view when moving to this state, so we use fast-out-linear-in.
.demo-position-4 {
left: 302px;
@include material-animation-fast-out-linear-in();
}
// Right side.
// We enter the view when moving to this state, so we use linear-out-slow-in.
.demo-position-5 {
left: 180px;
@include material-animation-linear-out-slow-in();
}
// Left side.
// We're always visible when moving to this state, so we use default.
.demo-position-6 {
left: 20px;
@include material-animation-default();
}
.demo-paper-card {
background-color: red;
border-radius: 2px;
display: block;
height: 100px;
width: 100px;
position: absolute;
top: 50px;
transition-property: left;
}