Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #15 from addyosmani/master
Browse files Browse the repository at this point in the history
slide-from-bottom: add polyfill-next-selector & prefixes
  • Loading branch information
Yvonne Yip committed Aug 7, 2014
2 parents 981f9cf + e18c888 commit a388f81
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion transitions/slide-from-bottom.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,28 @@
<link href="core-transition-pages.html" rel="import">

<core-style id="slide-from-bottom">
polyfill-next-selector { content: ':host(.slide-from-bottom) > *'; }
:host(.slide-from-bottom) ::content > * {
-webkit-transition: -webkit-transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
transition: transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
}

polyfill-next-selector { content: ':host(.slide-from-bottom) > .core-selected ~ [animate]:not(.core-selected)'; }
:host(.slide-from-bottom) ::content > .core-selected ~ [animate]:not(.core-selected) {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}


polyfill-next-selector { content: ':host(.slide-from-bottom) > [animate]:not(.core-selected)'; }
:host(.slide-from-bottom) ::content > [animate]:not(.core-selected) {
-webkit-transform: translateY(-100%);
transform: translateY(-100%);
}

polyfill-next-selector { content: ':host(.slide-from-bottom) > .core-selected'; }
:host(.slide-from-bottom) ::content > .core-selected {
-webkit-transform: none;
transform: none;
}
</core-style>

Expand Down

0 comments on commit a388f81

Please sign in to comment.