Feature request: better linear gradients with custom easing #15896
gustavopch
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The problem is thoroughly described here (https://larsenwork.com/easing-gradients/) and here (https://css-tricks.com/easing-linear-gradients/), but you'll understand just looking at this:
Maybe add classes such as
bg-ease-to-t
,bg-ease-in-out-sine-to-b
, etc.Here's my current workaround (I use it like
bg-linear-to-t from-black smooth
; it's incompatible withvia-*
):Here's a script to generate the points:
Other relevant links:
Extra keywords for discoverability:
scrim gradient
,smooth gradient
,gradient easing
.Beta Was this translation helpful? Give feedback.
All reactions