OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 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 | 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 | 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 | 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 | 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 | 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"> | 9 --><html><head><link rel="import" href="../../polymer/polymer.html"> |
10 <link rel="import" href="../neon-shared-element-animation-behavior.html"> | 10 <link rel="import" href="../neon-shared-element-animation-behavior.html"> |
11 <link rel="import" href="../web-animations.html"> | 11 <link rel="import" href="../web-animations.html"> |
12 | 12 |
13 <!-- | 13 <!-- |
14 `<ripple-animation>` scales and transform an element such that it appears to rip
ple from either | 14 `<reverse-ripple-animation>` scales and transform an element such that it appear
s to ripple down from this element, to either |
15 a shared element, or from a screen position, to full screen. | 15 a shared element, or a screen position. |
16 | 16 |
17 If using as a shared element animation in `<neon-animated-pages>`, use this anim
ation in an `exit` | 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 | 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 | 19 reverse-ripple elements in the `sharedElements` property (not a configuration pr
operty, see |
20 `Polymer.NeonSharedElementAnimatableBehavior`). | 20 `Polymer.NeonSharedElementAnimatableBehavior`). |
21 | |
22 If using a screen position, define the `gesture` property. | 21 If using a screen position, define the `gesture` property. |
23 | |
24 Configuration: | 22 Configuration: |
25 ``` | 23 ``` |
26 { | 24 { |
27 name: 'ripple-animation`. | 25 name: 'reverse-ripple-animation`. |
28 id: <shared-element-id>, /* set this or gesture */ | 26 id: <shared-element-id>, /* set this or gesture */ |
29 gesture: {x: <page-x>, y: <page-y>}, /* set this or id */ | 27 gesture: {x: <page-x>, y: <page-y>}, /* set this or id */ |
30 timing: <animation-timing>, | 28 timing: <animation-timing>, |
31 toPage: <node>, /* define for the destination page */ | 29 toPage: <node>, /* define for the destination page */ |
32 fromPage: <node>, /* define for the source page */ | 30 fromPage: <node>, /* define for the source page */ |
33 } | 31 } |
34 ``` | 32 ``` |
35 --> | 33 --> |
36 | 34 |
37 </head><body><script src="ripple-animation-extracted.js"></script></body></html> | 35 </head><body><script src="reverse-ripple-animation-extracted.js"></script></body
></html> |
OLD | NEW |