diff options
| author | QuarkPixel <m2462864403@gmail.com> | 2025-09-18 14:48:01 +0800 |
|---|---|---|
| committer | QuarkPixel <m2462864403@gmail.com> | 2025-09-18 14:48:01 +0800 |
| commit | f63683dad80437834ee16e89478519a812ced372 (patch) | |
| tree | 98d21e0688e58d4ff80c51daa8bc788f2e409723 /src/shadow.js | |
| parent | d26860e424227003122b077c8d2e76223d760e67 (diff) | |
feat(config): make libra more customizable through config.js and
libra.css
Diffstat (limited to 'src/shadow.js')
| -rw-r--r-- | src/shadow.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shadow.js b/src/shadow.js index 9889240..e36affa 100644 --- a/src/shadow.js +++ b/src/shadow.js @@ -2,8 +2,7 @@ import Animation from './animation.js' import config from './config' export default class Shadow { - zIndex = '1000' - isOpen = false + isOpen = false; /** * ============ @@ -39,7 +38,8 @@ export default class Shadow { shadow.style.left = `${this.originalPosition.left}px`; shadow.style.width = `${this.originalPosition.width}px`; shadow.style.height = `${this.originalPosition.height}px`; - shadow.style.zIndex = this.zIndex; + // Set transition duration from config + shadow.style.transitionDuration = config.transitionDuration + 'ms'; document.body.appendChild(shadow); this.element = shadow; |
