Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -webkit-transform: rotateX( -90deg ) translateZ( -webit-calc(100vh - 50vw) );
- var responsive_calculations = function () {
- if ( $("#cube").hasClass("show-front") ) {
- $(".bottom").css({
- width: winWidth,
- height: winWidth,
- transform: "rotateX( -90deg ) translateZ(" + winHeight - winWidth_half + "px)"
- });
- }
- };
- responsive_calculations();
- $(window).resize(function () {
- responsive_calculations();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement