// // Push styles (to be used with push.js) // -------------------------------------------------- .content { // Fade animation &.fade { left: 0; opacity: 0; -webkit-transition: opacity .2s ease-in-out; transition: opacity .2s ease-in-out; &.in { opacity: 1; } } // Slide animation iOS7 &.slide { z-index: 2; -webkit-transition-timing-function: cubic-bezier(.1, .7, .1, 1); // Inspired by @c2prods -webkit-transition: -webkit-transform .4s; transition: transform .4s; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); &.sliding-in.top, &.right:not([class*="sliding-in"]) { -webkit-animation-name: fadeOverlay; animation-name: fadeOverlay; -webkit-animation-duration: .4s; } &.right:not([class*="sliding-in"]) { -webkit-animation-direction: reverse; } &.left { z-index: 1; -webkit-transform: translate3d(-20%, 0, 0); // Creates the parallax effect transform: translate3d(-20%, 0, 0); } &.right { z-index: 3; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } } @-webkit-keyframes fadeOverlay { from { box-shadow: 0 0 10px rgba(0,0,0,0), -320px 0 0 rgba(0,0,0,0); } to { box-shadow: 0 0 10px rgba(0,0,0,.3), -320px 0 0 rgba(0,0,0,.1); } }