Initial commit

This commit is contained in:
Fabio 2025-03-25 10:28:23 +01:00
parent 97249b1cfa
commit e51ffdca91
2 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,16 @@
export let yOffset = 6;
export let inViewMargin = "-50px";
export let blur = "6px";
const generateUUID = () =>
typeof crypto?.randomUUID === "function"
? crypto.randomUUID()
: "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
const r = (Math.random() * 16) | 0;
return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
});
export let id = generateUUID().slice(0, 8);
export let id = browser ? crypto.randomUUID().slice(0, 8) : "fallback-id";
export let once = false;
let defaultVariants = {

View File

@ -4,8 +4,6 @@
<script>
import BlurFade from "./BlurFade.svelte";
import { browser } from "$app/environment";
export let id = browser ? crypto.randomUUID().slice(0, 8) : "fallback-id";
</script>
<style>
.hero p {