mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Make duration prop optional
This commit is contained in:
parent
6883bfec69
commit
26a8c72b4c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import { cubicIn, cubicOut } from "svelte/easing";
|
import { cubicIn, cubicOut } from "svelte/easing";
|
||||||
import { tweened } from "svelte/motion";
|
import { tweened } from "svelte/motion";
|
||||||
|
|
||||||
export let duration: number;
|
export let duration = 200;
|
||||||
|
|
||||||
function dynamicDuration(height: number, factor: number): number {
|
function dynamicDuration(height: number, factor: number): number {
|
||||||
return 100 + Math.pow(height, 1 / 4) * factor;
|
return 100 + Math.pow(height, 1 / 4) * factor;
|
||||||
|
|
Loading…
Reference in a new issue