Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💥 [Earwurm] Replace fadeMs with transitions #56

Merged
merged 14 commits into from
Jan 9, 2024
Merged

Conversation

beefchimi
Copy link
Owner

@beefchimi beefchimi commented Jan 5, 2024

This PR simplified things by replacing the customizable fadeMs option with a boolean transitions. This new prop will still default to false (no fade/transition time). If opted-into, then it will provide an opinionated 200ms "transition" to volume changes.

At the moment, this only influences volume and mute. In the future, I would like this to apply to speed and pause/play (and if ever added, both pitch and reverse... possibly even seek). Each of those additions will come with their own complications... which is why I am keeping things simple for now.

Additionally, I removed some static members from all components. Now, we expose + export the relevant values on the tokens object.

@beefchimi beefchimi self-assigned this Jan 5, 2024
Copy link

changeset-bot bot commented Jan 5, 2024

🦋 Changeset detected

Latest commit: 5204081

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
earwurm Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 📚 Documentation Improvements or additions to documentation 🧪 Testing Relating to testing of this code labels Jan 5, 2024
@beefchimi beefchimi merged commit 5f7e2b1 into main Jan 9, 2024
3 checks passed
@beefchimi beefchimi deleted the transitions branch January 9, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 Documentation Improvements or additions to documentation 🧪 Testing Relating to testing of this code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant