Skip to content

feat: Animate gameplay components#315

Open
jschhie wants to merge 7 commits intopreprodfrom
feat/game-captions-animation
Open

feat: Animate gameplay components#315
jschhie wants to merge 7 commits intopreprodfrom
feat/game-captions-animation

Conversation

@jschhie
Copy link
Copy Markdown
Collaborator

@jschhie jschhie commented Mar 16, 2026

Summary

  • Improves UX by introducing Tailwind animations and Vue transitions across gameplay UI components
  • This addresses abrupt rendering states, providing a smoother experience for sighted players
  • + Minor WCAG fix: Hide decorative game icons for screen-reader accessibility

Approach

  • Add/use shared Tailwind configs to gameplay components (ex: animate-fade-slide-in)
  • Add Vue <transition> wrapper around game Q&A captions components for fade effects
  • Add computed property and :class bindings for <GameProgressBar/> to animate progress bar index
  • (Minor WCAG Fix): Set aria-hidden and empty alt="" text for decorative <GameLayout/> icons

Vercel Previews

1. <GameDropdownOptions/>

View

Fade, Slide-In

Game Dropdown Options
game.zone.menu.dropdown.mov

2. Game Intro UI: <GameLayout/> + <GameHeader/> + <PlayButton/>

View

Fade, Slide-In

Mobile
mobile.small.game.layout.fade.mov
Tablet
tablet.game.layout.fade.mov
Desktop
desktop.game.layout.slide.in.mov

3. <GameControls/>

View
Game Controls
game.controls.mov

4. <GameProgressBar/> + <AnswerCaptions/>

View

Color Transitions + Fade In/Out Effects

Incorrect Answer
clip.incorrect.fade.mov
Correct Answer
clip.correct.fade.in.out.mov

5. <GameOver/>

View

Slide-In Animation

Game Over
game.over.mov

Manual Tests

  • Local dev + Deployed on personal Vercel
  • Gameplay: Scoring, Progress Bar, Record/Submit Answer, Repeat Q, Audio
  • Sampled 1+ games across 5 categories
  • Game Zone Landing Page: Correct filtering & dropdown visibility

jschhie added 7 commits March 16, 2026 12:32
- Add Tailwind animation class to improve <GameOver/> UI
- Add Tailwind animation to <GameHeader/> & <PlayButton/> during intro
    and <GameControls/> during first question narration
- Improve gameplay with smoother UI/UX
- Add Tailwind animation to <GameDropdownOptions/> to improve UI
- Add fade effects via <transition> to improve UI/UX for game Q&A captions
- Set 'aria-hidden' for parent div with decorative <GameLayout/> icons
- Remove unnecessary alt text for SR-hidden image tags
- Add computed property & :classes for current <GameProgressBar/> index
- Add transitions/animations to improve UI
@jschhie jschhie self-assigned this Mar 16, 2026
@jschhie jschhie added feature New feature or request accessibility This issue needs to be resolved for ADA compliance labels Mar 16, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
audemywebsite Ready Ready Preview, Comment Mar 16, 2026 7:51pm

:currentQuestion="currentQuestion"
:showAnswerOnly="showAnswerOnly"
/>
<!-- Vue transition wrapper for fade effects -->
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes:

  • Added Vue <transition> wrapper and key attributes
  • (Large diff due to Prettier re-indenting)

@jschhie jschhie marked this pull request as ready for review March 16, 2026 20:03
@jschhie jschhie requested a review from master-of-none March 16, 2026 20:09
@jschhie
Copy link
Copy Markdown
Collaborator Author

jschhie commented Mar 16, 2026

Hi @master-of-none,

Could you please review this whenever you get a chance? It adds Tailwind/Vue animations to improve gameplay transitions.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility This issue needs to be resolved for ADA compliance feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant