You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understood correctly you had tried to place the cube at the center moving it with left:50% and then moving at the left with the half of his width width: 800px with margin-left: -400px.
So try to replace that code with this:
top: 10%;
left: 10%;
width: 80%;
height: 80%;
The text was updated successfully, but these errors were encountered:
Thanks for the input. But the problem is with the transforms. The translateZ value cannot be a percentage. To keep things from looking weird we need to translate Z by the same value we translate X, and the value by which we translate X needs to be half the width of the cube. So in order to do that we need to keep things fixed, I think.
If you know a way around this I'd love to hear it!
I suggests not to place fixed dimensions in cube.css in the section
.csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide
like:
If I understood correctly you had tried to place the cube at the center moving it with
left:50%
and then moving at the left with the half of his widthwidth: 800px
withmargin-left: -400px
.So try to replace that code with this:
The text was updated successfully, but these errors were encountered: