feat: animate home screen buttons on click

This commit is contained in:
2025-11-13 13:52:40 +01:00
parent 0bca11dfe0
commit e7912c90a2
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();