Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. -webkit-transform: rotateX( -90deg ) translateZ( -webit-calc(100vh - 50vw) );
  2.  
  3. var responsive_calculations = function () {
  4. if ( $("#cube").hasClass("show-front") ) {
  5. $(".bottom").css({
  6. width: winWidth,
  7. height: winWidth,
  8. transform: "rotateX( -90deg ) translateZ(" + winHeight - winWidth_half + "px)"
  9. });
  10. }
  11. };
  12.  
  13. responsive_calculations();
  14. $(window).resize(function () {
  15. responsive_calculations();
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement