2022-05-05 15:33:22 +03:00
|
|
|
import { fade, fly } from "svelte/transition";
|
|
|
|
import { getItem } from "./storage";
|
|
|
|
|
|
|
|
export function maybeFly(...e) {
|
2022-05-05 21:30:21 +03:00
|
|
|
if (getItem("app:behavior:doAnimations"))
|
2022-05-05 15:33:22 +03:00
|
|
|
return fly(...e);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function maybeFade(...e) {
|
2022-05-05 21:30:21 +03:00
|
|
|
if (getItem("app:behavior:doAnimations"))
|
2022-05-05 15:33:22 +03:00
|
|
|
return fade(...e);
|
|
|
|
}
|