mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Export optional animated boolean
This commit is contained in:
parent
563ed8a9ab
commit
a73ae72e75
1 changed files with 1 additions and 2 deletions
|
@ -9,12 +9,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
export let collapse = false;
|
export let collapse = false;
|
||||||
export let duration = 200;
|
export let duration = 200;
|
||||||
|
export let animated = !document.body.classList.contains("reduced-motion");
|
||||||
|
|
||||||
let collapsed = false;
|
let collapsed = false;
|
||||||
let contentHeight = 0;
|
let contentHeight = 0;
|
||||||
|
|
||||||
let animated = !document.body.classList.contains("reduced-motion");
|
|
||||||
|
|
||||||
function dynamicDuration(height: number): number {
|
function dynamicDuration(height: number): number {
|
||||||
return 100 + Math.pow(height, 1 / 4) * 25;
|
return 100 + Math.pow(height, 1 / 4) * 25;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue