Skip to content

Commit 1dfeebd

Browse files
committed
Update demo code
1 parent 8f016e7 commit 1dfeebd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

demo/css/styles.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
}
55

66
body {
7-
/*background-image: linear-gradient(to right, black 49%, transparent 50%);*/
7+
/*background-image: linear-gradient(to right, hsl(100, 100%, 50%) 49%, hsl(200, 100%, 50%) 50%);*/
88
}
99

1010
.gradient {
11-
background-image: linear-gradient(to right, black, transparent);
11+
background-image: linear-gradient(to right, hsl(0, 100%, 50%), hsla(0, 100%, 50%, 0));
1212
background-position: center;
1313
background-repeat: no-repeat;
1414
background-size: cover;
1515
height: 50vh;
16-
width: 20vw;
16+
width: 50vw;
1717
margin: 0 auto;
1818
}
1919

2020
.gradient--easing {
21-
background-image: linear-gradient(to right, hsl(0, 0%, 0%) 0, hsla(0, 0%, 0%, 0.98) 9.5%, hsla(0, 0%, 0%, 0.92) 17.7%, hsla(0, 0%, 0%, 0.86) 24.7%, hsla(0, 0%, 0%, 0.78) 31%, hsla(0, 0%, 0%, 0.7) 36.8%, hsla(0, 0%, 0%, 0.62) 42.3%, hsla(0, 0%, 0%, 0.54) 47.6%, hsla(0, 0%, 0%, 0.45) 52.9%, hsla(0, 0%, 0%, 0.37) 58.2%, hsla(0, 0%, 0%, 0.29) 63.7%, hsla(0, 0%, 0%, 0.21) 69.5%, hsla(0, 0%, 0%, 0.14) 75.8%, hsla(0, 0%, 0%, 0.07) 82.9%, hsla(0, 0%, 0%, 0.02) 91.2%, hsla(0, 0%, 0%, 0) 100%);
22-
width: 30vw;
21+
background-image: linear-gradient(to right, hsl(0, 100%, 50%) 0, hsla(0, 100%, 50%, 0.917) 5.3%, hsla(0, 100%, 50%, 0.834) 10.6%, hsla(0, 100%, 50%, 0.753) 15.9%, hsla(0, 100%, 50%, 0.672) 21.3%, hsla(0, 100%, 50%, 0.591) 26.8%, hsla(0, 100%, 50%, 0.511) 32.5%, hsla(0, 100%, 50%, 0.433) 38.4%, hsla(0, 100%, 50%, 0.357) 44.5%, hsla(0, 100%, 50%, 0.283) 50.9%, hsla(0, 100%, 50%, 0.213) 57.7%, hsla(0, 100%, 50%, 0.147) 65%, hsla(0, 100%, 50%, 0.089) 72.9%, hsla(0, 100%, 50%, 0.042) 81.4%, hsla(0, 100%, 50%, 0.011) 90.6%, hsla(0, 100%, 50%, 0) 100%);
22+
width: 50vw;
2323
}

demo/css/styles.pcss

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
}
55

66
body {
7-
/*background-image: linear-gradient(to right, black 49%, transparent 50%);*/
7+
/*background-image: linear-gradient(to right, hsl(100, 100%, 50%) 49%, hsl(200, 100%, 50%) 50%);*/
88
}
99

1010
.gradient {
11-
background-image: linear-gradient(to right, black, transparent);
11+
background-image: linear-gradient(to right, hsl(0, 100%, 50%), hsla(0, 100%, 50%, 0));
1212
background-position: center;
1313
background-repeat: no-repeat;
1414
background-size: cover;
1515
height: 50vh;
16-
width: 20vw;
16+
width: 50vw;
1717
margin: 0 auto;
1818
}
1919

2020
.gradient--easing {
21-
background-image: ease-in-out-sine-gradient(to right, black, transparent);
22-
width: 30vw;
21+
background-image: ease-out-sine-gradient(to right, hsla(0, 100%, 50%, 1), hsla(0, 100%, 50%, 0));
22+
width: 50vw;
2323
}

0 commit comments

Comments
 (0)