テーマは「conic-gradient」
サンプルファイルはこちら↓↓
github.com
新しいグラデーション手法conic-gradient()関数
- Google Chrome 69からサポートされたCSS
- 円錐上に色を指定してグラデーションを作る
- 工夫次第で今までcanvas使って面倒臭いなっていう表現がcssでできる
- 特に円形グラフと集中線ができるのはすごい便利
ICSさんのサイトで丁寧な解説のってるので参考に ics.media
※ 以下Chrome69~限定で動作
円形グラフ
See the Pen intr9 sample1 by ikeryou (@ikeryou) on CodePen.
集中線
See the Pen intr9 sample2 by ikeryou (@ikeryou) on CodePen.
repeat-conic-gradient使った変わりダネ
See the Pen intr9 sample3 by ikeryou (@ikeryou) on CodePen.
シンプルに
See the Pen intr9 sample4 by ikeryou (@ikeryou) on CodePen.