Answers for "how does a linear gradient work"

CSS
23

linear gradient css

/* A gradient tilted 100 degrees,
   starting gray and finishing black */

.class {
    background: linear-gradient(100deg, rgba(63, 63, 63, 0.8) 0%, rgba(255, 255, 255, 0) 25%);
}

/* A gradient going from the bottom to top
   starting red and finishing orange */

.class {
    background: linear-gradient(to top, #f32b60, #ff8f1f);
}
Posted by: Guest on December-19-2020
7

linear-gradient

background: linear-gradient(to left, #333, #333 50%, #eee 100%);
Posted by: Guest on April-01-2020
1

css linear gradient

#gradient {
  background-image: linear-gradient(180deg, black, red);
}
/* can be applied in many places, as your <body> background or a <div> etc */
Posted by: Guest on September-17-2020
0

liner gradient

<style>

  div{ 
    border-radius: 20px;
    height: 400px;
    margin:  50 auto;
    background: repeating-linear-gradient(
      45deg,
      yellow 0px,
      yellow 40px,
      black 40px,
      black 80px
    );
  }

</style>

<div></div>
Posted by: Guest on September-19-2021

Browse Popular Code Answers by Language