| 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 <link rel="import" href="../../../polymer/polymer.html"> |
| 10 <link rel="import" href="../../../paper-styles/paper-styles.html"> |
| 11 <link rel="import" href="../../neon-animatable-behavior.html"> |
| 12 <link rel="import" href="../../neon-animation-runner-behavior.html"> |
| 13 <link rel="import" href="animated-grid.html"> |
| 14 |
| 15 <dom-module id="full-page"> |
| 16 |
| 17 <style> |
| 18 |
| 19 :host { |
| 20 background: black; |
| 21 visibility: hidden; |
| 22 @apply(--layout-vertical); |
| 23 } |
| 24 |
| 25 .toolbar { |
| 26 background: #9c27b0; |
| 27 height: 72px; |
| 28 z-index: 1; |
| 29 @apply(--shadow-elevation-2dp); |
| 30 } |
| 31 |
| 32 animated-grid { |
| 33 height: calc(100% - 72px); |
| 34 @apply(--layout-flex); |
| 35 } |
| 36 |
| 37 </style> |
| 38 |
| 39 <template> |
| 40 |
| 41 <div id="toolbar" class="toolbar"></div> |
| 42 |
| 43 <animated-grid id="grid"></animated-grid> |
| 44 |
| 45 </template> |
| 46 |
| 47 </dom-module> |
| 48 |
| 49 <script> |
| 50 |
| 51 Polymer({ |
| 52 |
| 53 is: 'full-page', |
| 54 |
| 55 behaviors: [ |
| 56 Polymer.NeonAnimatableBehavior, |
| 57 Polymer.NeonAnimationRunnerBehavior |
| 58 ], |
| 59 |
| 60 properties: { |
| 61 |
| 62 animationConfig: { |
| 63 type: Object, |
| 64 value: function() { |
| 65 return { |
| 66 'entry': [{ |
| 67 name: 'slide-down-animation', |
| 68 node: this.$.toolbar |
| 69 }, { |
| 70 animatable: this.$.grid, |
| 71 type: 'entry' |
| 72 }] |
| 73 }; |
| 74 } |
| 75 } |
| 76 |
| 77 }, |
| 78 |
| 79 show: function() { |
| 80 this.style.visibility = 'visible'; |
| 81 this.playAnimation('entry'); |
| 82 } |
| 83 |
| 84 }); |
| 85 |
| 86 </script> |
| OLD | NEW |