円錐グラデーション(繰り返す)。
from
<angle>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(from 30deg, red, yellow); ">テスト </DIV>background-colorではできなかった
at
<position>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(at 20% 50%,red, yellow); ">テスト </DIV>
<angle>は、1個指定した場合は終了角度。2個指定した場合は、1個目が開始角度、2個目が終了角度。
角度の切れ目が合わない場合は、ぼかされるようだ。
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red, yellow); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red 30deg, yellow); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red, yellow 30deg); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red 30deg, yellow 30deg); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red 30deg, yellow 60deg); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red 30deg 60deg, yellow); ">テスト </DIV>
<DIV style="border:1px solid red; width:100px; height:100px; background:repeating-conic-gradient(red, yellow 30deg 60deg); ">テスト </DIV>
gradient の gradient 中心 を決定する。値は radial-gradient() に対するときと同じに解決される。この引数が省略された場合の既定は center とする。
linear-gradient()、conic-gradient()、radial-gradient()。
repeating-linear-gradient()、repeating-conic-gradient()、repeating-radial-gradient()。
表示内容: |
表示内容: |