Index: third_party/polymer/components-chromium/core-animated-pages/transitions/core-transition-pages.html |
diff --git a/third_party/polymer/components-chromium/core-animated-pages/transitions/core-transition-pages.html b/third_party/polymer/components-chromium/core-animated-pages/transitions/core-transition-pages.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1b4f7f193f5f7c88bbb3224b8f05882c4055afc4 |
--- /dev/null |
+++ b/third_party/polymer/components-chromium/core-animated-pages/transitions/core-transition-pages.html |
@@ -0,0 +1,53 @@ |
+<!-- |
+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="../../polymer/polymer.html" rel="import"> |
+<link href="../../core-style/core-style.html" rel="import"> |
+<link href="../../core-transition/core-transition.html" rel="import"> |
+ |
+<!-- |
+ |
+`core-transition-pages` represents a page transition, which may include CSS and/or |
+script. It will look for a `core-style` element with the same `id` to install in the |
+scope of the `core-animated-pages` that's using the transition. |
+ |
+Example: |
+ |
+ <core-style id="fooTransition"> |
+ // some CSS here |
+ </core-style> |
+ <core-transition-pages id="fooTransition"></core-transition-pages> |
+ |
+There are three stages to a page transition: |
+ |
+1. `prepare`: Called to set up the incoming and outgoing pages to the "before" state, |
+ e.g. setting the incoming page to `opacity: 0` for `cross-fade` or find and |
+ measure hero elements for `hero-transition`. |
+ |
+2. `go`: Called to run the transition. For CSS-based transitions, this generally |
+ applies a CSS `transition` property. |
+ |
+3. `complete`: Called when the elements are finished transitioning. |
+ |
+See the individual transition documentation for specific details. |
+ |
+@element core-transition-pages |
+@extends core-transition |
+@status beta |
+@homepage github.io |
+--> |
+<!-- |
+Fired when the transition completes. |
+ |
+@event core-transitionend |
+--> |
+<polymer-element name="core-transition-pages" extends="core-transition" assetpath=""> |
+ |
+</polymer-element> |
+<script src="core-transition-pages-extracted.js"></script> |