Skip to content

ahsane/backdropjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NPM version

CSS backdrop filter polyfill

Demo: https://ahsane.github.io/backdropjs/index.html

Backdrop filter polyfill for browsers that do not support it

Safari, Chrome, Edge already has backdrop-filter support, so this is not needed for them.

Package Manager

npm install backdropjs --save

yarn add backdropjs

Documentation

Current limitation: This works only for static content.

First add the script <script src="backdrop.js"></script>

Then use the API backdrop(backdropsource, backdropapply, blur, scroller)

backdropsource: The dom element where backdrop is going to be applied from

backdropapply: The dom element where backdrop is going to be applied to

blur: The amout of blur in px (equivalent to backdrop-filter: blur)

scroller: (string [yes/no]) Keep this to yes.

Example: backdrop(document.documentElement.outerHTML, document.getElementById('xx'), 20, "yes");

About

Backdrop filter polyfill for browsers that do not support it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published