-
Notifications
You must be signed in to change notification settings - Fork 185
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
Fade animation without opacity and fade-bloom in dark mode don't work #329
Comments
Start a new pull request in StackBlitz Codeflow. |
Hi @makkabi, thanks for the report!
Yes, while this may not appear as useful as some explicit from/to keyframes, it has composability. It's just an effect, not a timeline. It's not as common that keyframes are used this way, but it's how all of them are setup in OP and it allows more flexibility, but does require a bit more know how. You can however, play the fade-out animation in reverse, which will set opacity to 0 for you .box {
animation: var(--animation-fade-out) reverse;
} not as obvious, but neat and useful.
yes, this looks like a bug, the value of the custom property is all the keyframes, there's an injection issue. i'll check this out asap 👍🏻 |
adaptive keyframe bug fixed in v1.0.9 👍🏻 |
that means this issue can close? |
Works fine now, thanks! |
Great project, but when playing around I got stuck with two issues regarding the fade-in (or out) and the fade-in-bloom animations. I am using the JIT compiler, and you can see the issues here:
Demo on Stackblitz
The fade-in only works when the element has an opacity value other than 1, which may be intended, but isn't mentioned. I suggest changing
to
The other thing is that the fade-in-bloom animation doesn't work in dark mode, because somehow the value of the --fade-in-bloom variable gets set to the keyframes in OS dark mode:
The text was updated successfully, but these errors were encountered: