Dropper allows you to use the until-now unsupported CSS-Property backdrop-filter. It works with scrolling. It is implemented using custom elements.
Here you can try the package out: https://codepen.io/kosimst/pen/xNxgjy
- Typescript
- CustomElements
- ShadowDOM for encapsulation
- LitElement as base class for CustomElement
npm install backdropper
OR
import backdropper from 'https://unpkg.com/backdropper/dist/index.js?module'
Simply use the backdrop-filter CSS-Property with the same values as in the normal filter-property. Then, import the polyfill as seen in index.html and execute the function.
backdrop-filterfor<style>-Tags- CustomElement
- Scroll support
- Resize Support
-
Support for external stylesheets
-
Support for WebComponents (ShadowDom + Style encapsulation)
Currenty, this package is in early development. It will be published to npm. At the moment you have to clone this repository and compile the .ts-files. You have to serve it through polymer-cli with npm run dev. You can try this polyfill out in the index.html.
If you want to try it out without installing it, import it from unpkg:
import backdropper from 'https://unpkg.com/backdropper/dist/index.js?module'
- Adding 'Coming'-Features
- Demo site
- CI-Setup