UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

11 lines 1.28 kB
/** @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 */ import"../app-scroll-effects-behavior.js";import{ElementWithBackground as r,registerEffect as a}from"../../helpers/helpers.js";a("blend-background",{setUp:function setUp(){var r={};r.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer"),r.backgroundRearLayer=this._getDOMRef("backgroundRearLayer"),r.backgroundFrontLayer.style.willChange="opacity",r.backgroundFrontLayer.style.transform="translateZ(0)",r.backgroundRearLayer.style.willChange="opacity",r.backgroundRearLayer.style.transform="translateZ(0)",r.backgroundRearLayer.style.opacity=0,this._fxBlendBackground=r},run:function run(r,a){var e=this._fxBlendBackground;e.backgroundFrontLayer.style.opacity=1-r,e.backgroundRearLayer.style.opacity=r},tearDown:function tearDown(){delete this._fxBlendBackground}});