-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcube.scss
57 lines (48 loc) · 1.34 KB
/
cube.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
@mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
-webkit-transition:$prop $duration $easing $delay;
-moz-transition:$prop $duration $easing $delay;
-ms-transition:$prop $duration $easing $delay;
-o-transition:$prop $duration $easing $delay;
transition:$prop $duration $easing $delay;
}
@mixin transform($val) {
-webkit-transform:$val;
-moz-transform:$val;
-ms-transform:$val;
-o-transform:$val;
transform:$val;
}
@mixin perspective($val) {
-webkit-perspective:$val;
-moz-perspective:$val;
-ms-perspective:$val;
-o-perspective:$val;
perspective:$val;
}
.csstransitions.csstransforms {
@include perspective(1000);
.deck-container:not(.deck-menu) {
overflow:hidden;
> .slide {
position:absolute;
top:0;
left:50%;
margin-left:-400px;
width:800px;
@include transition(all, 1s);
.slide{
@include transition(all, 1s);
}
}
> .deck-previous:not(.deck-child-current),
> .deck-before:not(.deck-child-current) {
@include transform(rotateY( -90deg ) translateZ(400px) translateX(-400px));
opacity:0;
}
.deck-next:not(.deck-child-current),
.deck-after:not(.deck-child-current) {
@include transform(rotateY( 90deg ) translateZ(400px) translateX(400px));
opacity:0;
}
}
}