Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / neon-animation / animations / ripple-animation.html
blobe600cde51d2d6394403cbeda9a61df570a8d189b
1 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 --><html><head><link rel="import" href="../../polymer/polymer.html">
10 <link rel="import" href="../neon-shared-element-animation-behavior.html">
11 <link rel="import" href="../web-animations.html">
13 <!--
14 `<ripple-animation>` scales and transform an element such that it appears to ripple from either
15 a shared element, or from a screen position, to full screen.
17 If using as a shared element animation in `<neon-animated-pages>`, use this animation in an `exit`
18 animation in the source page and in an `entry` animation in the destination page. Also, define the
19 hero elements in the `sharedElements` property (not a configuration property, see
20 `Polymer.NeonSharedElementAnimatableBehavior`).
22 If using a screen position, define the `gesture` property.
24 Configuration:
25 ```
27 name: 'ripple-animation`.
28 id: <shared-element-id>, /* set this or gesture */
29 gesture: {x: <page-x>, y: <page-y>}, /* set this or id */
30 timing: <animation-timing>,
31 toPage: <node>, /* define for the destination page */
32 fromPage: <node>, /* define for the source page */
34 ```
35 -->
37 </head><body><script src="ripple-animation-extracted.js"></script></body></html>