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.github.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/CONTRIBUTORS.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/PATENTS.txt
10
<link rel="import" href="../../../polymer/polymer.html">
11
<link rel="import" href="../../../paper-styles/shadow.html">
12
<link rel="import" href="../../neon-animation-runner-behavior.html">
14
<dom-module id="animated-dropdown">
23
@apply(--shadow-elevation-2dp);
34
is: 'animated-dropdown',
37
Polymer.NeonAnimationRunnerBehavior
47
name: 'scale-up-animation',
49
transformOrigin: '0 0'
52
name: 'fade-out-animation',
67
'neon-animation-finish': '_onAnimationFinish'
70
_onAnimationFinish: function() {
73
this.style.display = '';
78
this.style.display = 'inline-block';
80
this.playAnimation('entry');
84
this._showing = false;
85
this.playAnimation('exit');