Skip to content

Refactor transitions for consistency across styles #2025

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

Merged
merged 8 commits into from
Jan 18, 2025

Conversation

clicktodev
Copy link
Contributor

@clicktodev clicktodev commented Jan 17, 2025

Standardize transition properties by introducing a common variable, ensuring uniformity in animation effects throughout the styles.

Screen.Recording.2025-01-17.at.6.58.29.PM.mp4
Screen.Recording.2025-01-17.at.6.35.41.PM.mp4

Copy link

github-actions bot commented Jan 17, 2025

@clicktodev clicktodev marked this pull request as ready for review January 17, 2025 18:04
@josevalim
Copy link
Member

@hichemfantar if you mouse over the root items in the sidebar, there is a small jiggle now. Is that intentional? I am afraid part of it is because we are using all everywhere. I think I prefer to be explicit over what we want to animate. What if we keep the property explicit and use a variable exclusively for the timer and/or curve?

@clicktodev
Copy link
Contributor Author

I fixed the bug you talked about and introduces multiple presets

Comment on lines 82 to 104
.transition-all {
transition: var(--transition-all);
}

.transition-colors {
transition: var(--transition-colors);
}

.transition-opacity {
transition: var(--transition-opacity);
}

.transition-shadow {
transition: var(--transition-shadow);
}

.transition-transform {
transition: var(--transition-transform);
}

.transition-none {
transition-property: none;
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the classes? We don't use them anywhere for now, right? So we can skip them and add them later if necessary. :)

@clicktodev clicktodev requested a review from josevalim January 18, 2025 11:21
@josevalim josevalim merged commit 8854816 into elixir-lang:main Jan 18, 2025
4 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@clicktodev clicktodev deleted the better-transitions branch January 18, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants