Skip to content

Conversation

@DylanDevelops
Copy link
Owner

Screen Recording Apr 7 2025 from ezgif

This pull request introduces a new animation effect for the user streak count in the navbar component. The key changes include adding CSS for the animation, updating the navbar.tsx file to manage the animation state, and ensuring the streak count animates correctly when it changes.

Animation and styling updates:

  • components/navbar/navbar.css: Added a new CSS class .streak-tick for the streak animation and defined the tick-up keyframes for the animation.

State management for animation:

  • components/navbar/navbar.tsx: Imported useRef to manage the previous streak value and added state variables and useEffect hooks to handle the animation logic when the streak count changes. [1] [2] [3]

@DylanDevelops DylanDevelops requested a review from divinewton April 8, 2025 02:40
@divinewton divinewton merged commit 257bdbd into main Apr 8, 2025
4 checks passed
@divinewton divinewton deleted the improved-streak-up-tick branch April 8, 2025 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants