mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 10:00:55 -04:00
fix(curriculum): vague skyline step 51 (#46072)
This commit is contained in:
@@ -7,18 +7,18 @@ dashedName: step-51
|
||||
|
||||
# --description--
|
||||
|
||||
You can make an instant color change in a gradient by giving the transition zero space like this:
|
||||
Gradient transitions often gradually change from one color to another. You can make the change a solid line like this:
|
||||
|
||||
```css
|
||||
gradient-type(
|
||||
color1,
|
||||
color1 50%,
|
||||
color2 50%,
|
||||
color2
|
||||
linear-gradient(
|
||||
var(--first-color) 0%,
|
||||
var(--first-color) 40%,
|
||||
var(--second-color) 40%,
|
||||
var(--second-color) 80%
|
||||
);
|
||||
```
|
||||
|
||||
Here, the top half of the element will be `color1` and the bottom half will be `color2`. Add a `linear-gradient` to `.bb2b` that uses `--building-color2` from `0%` to `6%` and `--window-color2` from `6%` to `9%`.
|
||||
Add a `linear-gradient` to `.bb2b` that uses `--building-color2` from `0%` to `6%` and `--window-color2` from `6%` to `9%`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user