@@ -76,14 +76,16 @@ import Layout from '../../layouts/Layout.astro';
const akademyUserId = params.get('childId');
const akademyGameName = params.get('gameName');
const spriteNames = params.get('spriteName');
- let buddiesList = [ "arlo", "ava", "dax", "kai", "monstero", "yara" ]
+ let buddiesList = [ "arlo", "ava", "dax", "kai", "monstero", "yara" ];
+ // starClipart
function displaySprite() {
if (buddiesList.includes(spriteNames)) {
const imgElement = document.getElementById('clipArtWithHand');
document.getElementById('buddiesName').textContent = `Ask to ${spriteNames.charAt(0).toUpperCase() + spriteNames.slice(1)}`;
if (imgElement) {
+ document.getElementById('starClipart').src = `/assets/${spriteNames}.gif`
imgElement.src = `/assets/hand-${spriteNames}.svg`;
- console.log(imgElement.src)
+ // console.log(imgElement.src)
} else {
console.log('Element with ID "clipArtWithHand" not found.');
}
@@ -146,11 +148,9 @@ import Layout from '../../layouts/Layout.astro';
}
function showAnimation() {
const clipArt = document.querySelector('.clip-art');
-
- // Initially set the clip-art to show after 2 seconds with a slide effect
setTimeout(() => {
- clipArt.classList.add('show'); // Add the show class to trigger animation
- }, 2000); // Delay animation by 2 seconds
+ clipArt.classList.add('show');
+ }, 100);
}
const isMobile = window.innerWidth <= 768; // Define your mobile breakpoint as needed
diff --git a/src/pages/drawing/v2.astro b/src/pages/drawing/v2.astro
index 4d29305..4487ca3 100644
--- a/src/pages/drawing/v2.astro
+++ b/src/pages/drawing/v2.astro
@@ -23,9 +23,9 @@ import Layout from '../../layouts/Layout.astro';