OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
6 Code distributed by Google as part of the polymer project is also | |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
8 --> | |
9 | |
10 <link rel="import" href="../polymer/polymer.html"> | |
11 <link rel="import" href="neon-animatable-behavior.html"> | |
12 | |
13 <!-- | |
14 `<neon-animatable>` is a simple container element implementing `Polymer.NeonAnim
atableBehavior`. This is a convenience element for use with `<neon-animated-page
s>`. | |
15 | |
16 ``` | |
17 <neon-animated-pages selected="0" | |
18 entry-animation="slide-from-right-animation" | |
19 exit-animation="slide-left-animation"> | |
20 <neon-animatable>1</neon-animatable> | |
21 <neon-animatable>2</neon-animatable> | |
22 </neon-animated-pages> | |
23 ``` | |
24 --> | |
25 | |
26 <dom-module id="neon-animatable"> | |
27 | |
28 <style> | |
29 | |
30 :host { | |
31 display: block; | |
32 } | |
33 | |
34 </style> | |
35 | |
36 <template> | |
37 <content></content> | |
38 </template> | |
39 | |
40 </dom-module> | |
41 | |
42 <script> | |
43 | |
44 Polymer({ | |
45 | |
46 is: 'neon-animatable', | |
47 | |
48 behaviors: [ | |
49 Polymer.NeonAnimatableBehavior | |
50 ] | |
51 | |
52 }); | |
53 | |
54 </script> | |
OLD | NEW |