-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathatropos.less
85 lines (84 loc) · 1.64 KB
/
atropos.less
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
.atropos {
position: relative;
display: block;
perspective: 1200px;
transform: translate3d(0, 0, 0);
&-rotate-touch,
&-rotate-scroll-x,
&-rotate-scroll-y {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
user-select: none;
}
&-rotate-touch-scroll-y {
touch-action: pan-y;
}
&-rotate-touch-scroll-x {
touch-action: pan-x;
}
&-rotate-touch {
touch-action: none;
}
}
.atropos-scale,
.atropos-rotate {
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition-property: transform;
display: block;
}
.atropos-shadow,
.atropos-highlight {
position: absolute;
pointer-events: none;
transition-property: transform, opacity;
display: block;
opacity: 0;
}
.atropos-shadow {
z-index: -1;
background: #000;
left: 0;
top: 0;
width: 100%;
height: 100%;
filter: blur(30px);
}
.atropos-highlight {
left: -50%;
top: -50%;
width: 200%;
height: 200%;
background-image: radial-gradient(circle at 50%, rgba(255, 255, 255, 0.25), transparent 50%);
z-index: 0;
}
.atropos-rotate {
position: relative;
}
.atropos-inner {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
transform-style: preserve-3d;
transform: translate3d(0, 0, 0);
display: block;
}
.atropos-active {
z-index: 1;
.atropos-shadow {
opacity: 1 !important;
}
}
[data-atropos-offset],
::slotted([data-atropos-offset]) {
transition-property: transform;
}
[data-atropos-opacity] {
transition-property: opacity;
}
[data-atropos-offset][data-atropos-opacity],
::slotted([data-atropos-offset][data-atropos-opacity]) {
transition-property: transform, opacity;
}