feat: animate home screen buttons on click

This commit is contained in:
2025-11-13 13:52:40 +01:00
parent 101103bde4
commit 5cfa906324
7 changed files with 63 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ const props = defineProps<{
y: number;
width: number;
height: number;
opacity: number;
}>();
const cornerImage = useTemplateRef("cornerImage");
@@ -45,6 +46,8 @@ useRender((ctx) => {
const w = Math.floor(currentWidth);
const h = Math.floor(currentHeight);
ctx.globalAlpha = props.opacity / 100;
ctx.drawImage(cornerImage.value, x, y);
ctx.save();