Skip to content

Gradient with background color opacity and custom percentage stop #10705

Answered by wongjn
dasveloper asked this question in Help
Discussion options

You must be logged in to vote

The slash alpha notation only works for established color value. Here, you've got multiple values going on here, color and a percentage so the slash alpha notation won't work. However, you could supply a different color value that has the alpha value, like from-[#00000080_25%], from-[rgb(0_0_0/.5)_25%], from-[rgba(0,0,0,.5)_25%], etc.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dasveloper
Comment options

Answer selected by dasveloper
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants