Index: third_party/polymer/components-chromium/core-animated-pages/transitions/scale-up.html |
diff --git a/third_party/polymer/components-chromium/core-animated-pages/transitions/scale-up.html b/third_party/polymer/components-chromium/core-animated-pages/transitions/scale-up.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97242853c136a4d50049512bb787cb95c0912f96 |
--- /dev/null |
+++ b/third_party/polymer/components-chromium/core-animated-pages/transitions/scale-up.html |
@@ -0,0 +1,37 @@ |
+<!-- |
+Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt |
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
+Code distributed by Google as part of the polymer project is also |
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
+--> |
+ |
+<link href="core-transition-pages.html" rel="import"> |
+ |
+<core-style id="scale-up"> |
+ polyfill-next-selector { content: ':host > * [scale-up]'; } |
+ ::content > * /deep/ [scale-up] { |
+ -webkit-transition: -webkit-transform {{g.transitions.scaleDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1) {{g.transitions.scaleDelay || g.transitions.delay}} !important; |
+ transition: transform {{g.transitions.scaleDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1) {{g.transitions.scaleDelay || g.transitions.delay}} !important; |
+ } |
+ |
+ polyfill-next-selector { content: ':host > .core-selected [scale-up]'; } |
+ ::content > .core-selected /deep/ [scale-up] { |
+ -webkit-transform: none; |
+ transform: none; |
+ } |
+ |
+ polyfill-next-selector { content: ':host > [animate]:not(.core-selected) [scale-up]'; } |
+ ::content > [animate]:not(.core-selected) /deep/ [scale-up] { |
+ -webkit-transform: scale(0); |
+ transform: scale(0); |
+ } |
+ |
+ polyfill-next-selector { content: ':host > .core-selected[animate] [scale-up]'; } |
+ ::content > .core-selected[animate] /deep/ [scale-up] { |
+ z-index: 1000; |
+ } |
+</core-style> |
+ |
+<core-transition-pages id="scale-up"></core-transition-pages> |