feat: docker compose maybe
This commit is contained in:
1
node_modules/@skeletonlabs/skeleton/dist/transitions/crossfade.d.ts
generated
vendored
Normal file
1
node_modules/@skeletonlabs/skeleton/dist/transitions/crossfade.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export {};
|
21
node_modules/@skeletonlabs/skeleton/dist/transitions/crossfade.js
generated
vendored
Normal file
21
node_modules/@skeletonlabs/skeleton/dist/transitions/crossfade.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import { cubicInOut } from 'svelte/easing';
|
||||
import { crossfade } from 'svelte/transition';
|
||||
// TODO: convert to js transitions on revisit.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function swoop(duration, x, y) {
|
||||
return crossfade({
|
||||
duration: (d) => Math.sqrt(d * duration),
|
||||
fallback(node) {
|
||||
const style = getComputedStyle(node);
|
||||
const transform = style.transform === 'none' ? '' : style.transform;
|
||||
return {
|
||||
duration,
|
||||
easing: cubicInOut,
|
||||
css: (t, u) => `
|
||||
transform: ${transform} scale(${t}) translate(${u * x}%, ${u * y}%);
|
||||
opacity: ${t}
|
||||
`
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user