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.

52 lines
1.2 KiB

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