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