Skip to content

feat(animations): create animation utilities for fade effects#70

Merged
raincamp merged 1 commit intomainfrom
feature/42-animation-utilities
Jan 14, 2026
Merged

feat(animations): create animation utilities for fade effects#70
raincamp merged 1 commit intomainfrom
feature/42-animation-utilities

Conversation

@raincamp
Copy link
Owner

Summary

  • Add util/animations.lua with reusable animation functions
  • Implement FadeIn(), FadeOut(), and StopFade() using WoW AnimationGroup API
  • Include animation caching per frame for performance
  • Add LuaLS type annotations in definitions.lua

Test plan

  • Verify animations.lua loads without errors
  • Test FadeIn on a frame (alpha 0→1)
  • Test FadeOut on a frame (alpha 1→0, then hide)
  • Verify callback functions execute on completion

Closes #42

🤖 Generated with Claude Code

- Add util/animations.lua with FadeIn, FadeOut, StopFade functions
- Uses WoW AnimationGroup API for smooth alpha transitions
- Includes animation caching per frame for performance
- Add LuaLS type annotations in definitions.lua
- Register animations.lua in hybar.toc

Closes #42

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds reusable fade animation utilities for the hybar addon using WoW's AnimationGroup API. The implementation provides FadeIn(), FadeOut(), and StopFade() functions with animation caching for performance optimization.

Changes:

  • Created new animation utility module with fade effects
  • Added animation group caching per frame to avoid recreating animations
  • Integrated type annotations for LuaLS support

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
util/animations.lua New module implementing fade-in, fade-out, and stop animation functions with caching
hybar.toc Added util/animations.lua to the load order after util/util.lua
definitions.lua Added LuaLS type annotations for the animations API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raincamp raincamp self-assigned this Jan 14, 2026
@raincamp raincamp added this to hybar Jan 14, 2026
@github-project-automation github-project-automation bot moved this to Backlog in hybar Jan 14, 2026
@raincamp raincamp merged commit 7554c2f into main Jan 14, 2026
6 checks passed
@raincamp raincamp deleted the feature/42-animation-utilities branch January 14, 2026 18:09
@github-project-automation github-project-automation bot moved this from Backlog to Done in hybar Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Create animation utilities (fade in/out)

1 participant

Comments