backdropper
Advanced tools
Comparing version
@@ -70,3 +70,3 @@ import { | ||
.children[0] as HTMLElement).style.transform = `translateY(-${ | ||
document.body.scrollTop | ||
document.body.scrollTop || document.documentElement.scrollTop | ||
}px)` | ||
@@ -73,0 +73,0 @@ }) |
{ | ||
"name": "backdropper", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Polyfill for backdrop-filter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# Backdropper | ||
## A Polyfill for backdrop-filter | ||
@@ -8,2 +9,6 @@ | ||
#### Demo | ||
Here you can try the package out: https://codepen.io/kosimst/pen/xNxgjy | ||
### Used technologies | ||
@@ -16,2 +21,10 @@ | ||
### Install | ||
npm install backdropper | ||
**OR** | ||
`import backdropper from 'https://unpkg.com/backdropper/dist/index.js?module'` | ||
### Usage | ||
@@ -40,2 +53,6 @@ | ||
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'` | ||
### TODOs | ||
@@ -45,2 +62,2 @@ | ||
- Demo site | ||
- CI-Setup | ||
- CI-Setup |
21898
1.87%60
42.86%