13 lines
276 B
JavaScript
13 lines
276 B
JavaScript
|
import { fade, fly } from "svelte/transition";
|
||
|
import { getItem } from "./storage";
|
||
|
|
||
|
export function maybeFly(...e) {
|
||
|
if (getItem("doAnimations"))
|
||
|
return fly(...e);
|
||
|
}
|
||
|
|
||
|
export function maybeFade(...e) {
|
||
|
if (getItem("doAnimations"))
|
||
|
return fade(...e);
|
||
|
}
|