OLD | NEW |
| (Empty) |
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.g
ithub.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/CONTRI
BUTORS.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/PATEN
TS.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"> | |
12 | |
13 <!-- | |
14 `<ripple-animation>` scales and transform an element such that it appears to rip
ple from either | |
15 a shared element, or from a screen position, to full screen. | |
16 | |
17 If using as a shared element animation in `<neon-animated-pages>`, use this anim
ation 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, se
e | |
20 `Polymer.NeonSharedElementAnimatableBehavior`). | |
21 | |
22 If using a screen position, define the `gesture` property. | |
23 | |
24 Configuration: | |
25 ``` | |
26 { | |
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 */ | |
33 } | |
34 ``` | |
35 --> | |
36 | |
37 </head><body><script src="ripple-animation-extracted.js"></script></body></html> | |
OLD | NEW |