mirror of https://github.com/twbs/ratchet.git
Build mobile apps with simple HTML, CSS, and JS components.
http://goratchet.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1019 B
42 lines
1019 B
// |
|
// 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 { |
|
-webkit-transition-timing-function: cubic-bezier(.1, .7, .1, 1); //Thanks to @c2prods |
|
-webkit-transform: translate3d(0, 0, 0); |
|
transform: translate3d(0, 0, 0); |
|
-webkit-transition: -webkit-transform .3s; |
|
transition: transform .3s; |
|
box-shadow: 0 0 10px rgba(0,0,0,.5); |
|
z-index: 2; |
|
|
|
&.left { |
|
z-index: 1; |
|
box-shadow: none; |
|
-webkit-transform: translate3d(-60%, 0, 0); // Creates the parallax effect |
|
transform: translate3d(-60%, 0, 0); |
|
} |
|
|
|
&.right { |
|
z-index: 3; |
|
-webkit-transform: translate3d(100%, 0, 0); |
|
transform: translate3d(100%, 0, 0); |
|
} |
|
} |
|
} |