waffle/frontend/src/animations.js

13 lines
302 B
JavaScript
Raw Normal View History

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