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

New Want: I want gradients to be animatable #430

Open
samhenrigold opened this issue Jul 22, 2021 · 1 comment
Open

New Want: I want gradients to be animatable #430

samhenrigold opened this issue Jul 22, 2021 · 1 comment
Labels
want Incoming requests from the community

Comments

@samhenrigold
Copy link

My proposal:


title: I want linear and radial gradients able to be animated with CSS.
date: 2021-07-22
submitter: Sam Henri-Gold
number: FOR INTERNAL USE ONLY
tags: css, linear-gradient, radial-gradient, gradient, background-image, background, transition, animation

To animate a gradient today, there are a few hacky methods I've found:

  1. Make a huge gradient (background-size: 400%, 400%) and animate the background position
  2. Use an absolute-positioned pseudo element with a gradient and change it's opacity
  3. Have elementX with a solid background, use an absolute-positioned pseudo element with a gradient that goes from rgb(111, 222, 233) to transparent, change elementX's background.

Allowing gradient stops to be animated directly would be a huge quality of life improvement and enable far more advanced designs to rival those on native platforms.

@samhenrigold samhenrigold added the want Incoming requests from the community label Jul 22, 2021
@samhenrigold
Copy link
Author

samhenrigold commented Jul 22, 2021

This has been brought up many, many times on the CSSWG drafts repo but hasn't seem to have gotten anywhere.
#5617, #1332, #3783, #4999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
want Incoming requests from the community
Projects
None yet
Development

No branches or pull requests

1 participant