Fixing cylinders, reversing X mouse direction
This commit is contained in:
parent
34f6162627
commit
773f0e2704
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
& > .strip {
|
& > .strip {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: calc(2 * var(--PI) * var(--pradius) / var(--pstripcount));
|
width: calc(2 * 3.19 * var(--pradius) / var(--pstripcount));
|
||||||
height: var(--height, 100px);
|
height: var(--height, 100px);
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@for $i from 1 to 90 {
|
@for $i from 1 to 90 {
|
||||||
& > .strip-#{$i} { transform: rotateY(calc($i * (360deg / var(--pstripcount)))) translateZ(var(--pradius)); }
|
& > .strip-#{$i} { transform: rotateY(calc(($i - 1) * (360deg / var(--pstripcount)))) translateZ(var(--pradius)); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
top: 11.11vh * $i;
|
top: 11.11vh * $i;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-top-#{$i}:hover ~ section.scene {
|
.view-top-#{9-$i}:hover ~ section.scene {
|
||||||
--rotation-x: #{$rotation-x};
|
--rotation-x: #{$rotation-x};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
left: 11.11vw * $i;
|
left: 11.11vw * $i;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-left-#{$i}:hover ~ section.scene {
|
.view-left-#{9-$i}:hover ~ section.scene {
|
||||||
--rotation-y: #{$rotation-y};
|
--rotation-y: #{$rotation-y};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue