Sha256: f0a4cfe20fd68da38ed40ab0db11e010f2e1c355431876ee53fb7e8facf439f8
Contents?: true
Size: 983 Bytes
Versions: 5
Compression:
Stored size: 983 Bytes
Contents
<!-- @license Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <link rel="import" href="../app-scroll-effects-behavior.html"> <script> /** * Toggles the shadow property in app-header when content is scrolled to create a sense of depth * between the element and the content underneath. */ Polymer.AppLayout.registerEffect('waterfall', { /** * @this Polymer.AppLayout.ElementWithBackground */ run: function run() { this.shadow = this.isOnScreen() && this.isContentBelow(); } }); </script>
Version data entries
5 entries across 5 versions & 1 rubygems