1
0

More than 1 year has passed since last update.

conic-gradientとrepeating-linear-gradientを使ってみる

Posted at

ひとりCSS Advent Calendar 2022 5日目です。

conic-gradientとrepeating-linear-gradientを使ってみます。
どちらも background プロパティ background-image プロパティに指定する値。

conic-gradient とは

原点を中心に周りを周りながら色が変化する。conic = 円錐

  • angle - 角度
    • from - 開始角度をずらせる
    • at
  • position
  • 色と角度
  • 使い方しだいで円グラフや市松模様の表現もできる(おもしろい)

repeating-linear-gradient

線形グラデーションを繰り返し並べられる。

  • angle 角度
  • 色と位置

遊んでみた

See the Pen gradient by Beco (@becolomochi) on CodePen.

image.png

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0