Update format
This commit is contained in:
@ -5,6 +5,11 @@ 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.
|
||||
|
||||
```html
|
||||
<p class="gradient-text">Gradient text</p>
|
||||
```
|
||||
@ -17,10 +22,3 @@ Gives text a gradient color.
|
||||
font-size: 32px;
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
|
||||
- `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.
|
||||
|
||||
Reference in New Issue
Block a user