-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use CSS for muted-blocking animation #138
base: master
Are you sure you want to change the base?
Conversation
@keyframes volume-blocking { | ||
0% { -gtk-icon-transform: rotate(20deg); } | ||
25% { -gtk-icon-transform: rotate(-20deg); } | ||
50% { -gtk-icon-transform: rotate(10deg); } | ||
75% { -gtk-icon-transform: rotate(-10deg); } | ||
100% { -gtk-icon-transform: rotate(5deg); } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it in general, but the rotation feels weird to me since that icon is not visually weighted in the center. What about a side-to-side wiggle?
@keyframes volume-blocking { | |
0% { -gtk-icon-transform: rotate(20deg); } | |
25% { -gtk-icon-transform: rotate(-20deg); } | |
50% { -gtk-icon-transform: rotate(10deg); } | |
75% { -gtk-icon-transform: rotate(-10deg); } | |
100% { -gtk-icon-transform: rotate(5deg); } | |
} | |
@keyframes volume-blocking { | |
20% { -gtk-icon-transform: translateX(4px); } | |
40% { -gtk-icon-transform: translateX(-4px); } | |
60% { -gtk-icon-transform: translateX(2px); } | |
80% { -gtk-icon-transform: translateX(-2px); } | |
100% { -gtk-icon-transform: translateX(1px); } | |
} |
This also has an issue with light wallpapers where the transition to change color is very long. So it seems like we need some kind of other approach for transitioning back |
@danrabbit I am converting this to draft as it blocked and there is no recent activity. |
Fixes #137
Fixes #136
Instead of changing icon name, we transition color with CSS and add a little wiggle while we're at it
Since the current muted icon in the icon set is partial opacity, that is also preserved here. This will need to be changed in icons.
Made the transition a bit faster because: