+ 3

what is color stop? plz describe easily......

29th Oct 2016, 5:39 PM
Imran
Imran - avatar
3 Respuestas
+ 22
As you probably know gradients are typically one color that fades into another, but in CSS you can control every aspect of how that happens, from the direction to the colors to where those color changes happen. Thus colors and stops tell the browser which colors to use in the gradients, and where they should stop. Say you wanted yellow to take up the majority of the space, but red only a little bit in the beginning, you could make the yellow color-stop pretty early: html <div class="gradient"> </div> css .gradient { height: 100px; background-color: red; background-image: linear-gradient( to right, red, yellow 10% ); }
29th Oct 2016, 6:52 PM
//Lana Wilson
//Lana Wilson - avatar
+ 1
many many thanks.. @lana wilson .
30th Oct 2016, 2:12 AM
Imran
Imran - avatar
0
answer of that question is 20%
24th Feb 2017, 1:06 PM
Shaiv Roy
Shaiv Roy - avatar