feat: some shit

This commit is contained in:
max_richter 2023-11-13 00:04:18 +01:00
parent b3091fee92
commit 93a4025df7

View File

@ -14,7 +14,8 @@
y: -5 + Math.random() * 10,
x: -5 + Math.random() * 10,
scale: 0.9 + Math.random() * 0.2,
rot: -5 + Math.random() * 10
rot: -5 + Math.random() * 10,
marginTop: -10 + Math.random() * 20
};
})
.reverse();
@ -28,7 +29,7 @@
<div class="grid">
{#each items as item}
<div
style="--x: {item.x}%, --y: {item.y}%; --scale: {item.scale}; --rot:{item.rot}"
style="--x: {item.x}%, --y: {item.y}%; --scale: {item.scale}; --rot:{item.rot}; margin-top: {item.marginTop}px"
class="item"
class:active={item.noble_name === last_name}
>