skip button

This commit is contained in:
cjdenio committed 2024-11-22 20:27:02 -05:00
1 parent 083431c894
commit 2038c3bdd2
1 file changed
+4 -2
+4 -2
View File
@@ -32,7 +32,7 @@
await tick() await tick()
gsap.from(stationsElement, { opacity: 0, scale: 0.9 }) gsap.fromTo(stationsElement, { opacity: 0, scale: 0.9 }, { opacity: 1, scale: 1 })
} }
onMount(() => { onMount(() => {
@@ -87,7 +87,7 @@
async function addPoints(p) { async function addPoints(p) {
points += p points += p
pointFlourish.innerText = `+${p}` pointFlourish.innerText = `+${p}`
await gsap.to(pointFlourish, {x: -40, y: -50, rotate: -30, scale: 2, opacity: 0, duration: 1, startAt: {opacity: 1, y: 0, x: 0, scale: 1, rotate: 0}}).then() await gsap.to(pointFlourish, { x: -40, y: -50, rotate: -30, scale: 2, opacity: 0, duration: 1, startAt: { opacity: 1, y: 0, x: 0, scale: 1, rotate: 0 } }).then()
} }
</script> </script>
@@ -132,3 +132,5 @@
Next Next
{/if} {/if}
</button> </button>
<button class="hover:underline text-gray-400 cursor-pointer text-sm mt-2" on:click={() => next()}>Skip</button>