Revamp snippet descriptions
This commit is contained in:
@ -5,10 +5,9 @@ tags: visual,intermediate
|
||||
|
||||
Gives text a gradient color.
|
||||
|
||||
- `background: -webkit-linear-gradient(...)` gives the text element a gradient background.
|
||||
- `webkit-text-fill-color: transparent` fills the text with a transparent color.
|
||||
- `webkit-background-clip: text` clips the background with the text, filling the text with the gradient background as the color.
|
||||
- Uses non-standard properties.
|
||||
- Use `background` with a `linear-gradient` value to give the text element a gradient background.
|
||||
- Use `webkit-text-fill-color: transparent` to fill the text with a transparent color.
|
||||
- Use `webkit-background-clip: text` to clip the background with the text, filling the text with the gradient background as the color.
|
||||
|
||||
```html
|
||||
<p class="gradient-text">Gradient text</p>
|
||||
|
||||
Reference in New Issue
Block a user