3

hwb() color function (chrome 101+ only)

 1 year ago
source link: https://codepen.io/yuanchuan/pen/BaYKyRP
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

hwb() color function (chrome 101+ only)

0 unsaved changes
xxxxxxxxxx
<css-doodle seed="1652082487007"><style>
  @grid: 1 / 600px;
  --colors: @stripe.@m9(
    hwb(calc(-120/@N*@n) 0% calc(110%/@N*@n))
  );
  background: linear-gradient(var(--colors));
  ::after {
    content: '';
    position: absolute;
    bottom: 0%;
    opacity: .7;
    @size: 5% 25%;
    mix-blend-mode: screen;
    background: linear-gradient(0, var(--colors));
  }
  mask: @svg(
    viewBox: 0 0 10 10;
    rect {

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK