漸層產生器
設計最多四個色標的線性和放射狀 CSS 漸層,即時預覽並複製 CSS。
Preview
Blend steps between the first and last stop
使用方法
- Set each color stop. Use Add stop to grow the gradient to up to four colors.
- Switch between linear and radial, and set the direction with the angle slider for linear gradients.
- The CSS under the preview is ready to use; Copy CSS copies it with the background property included.
- Random gradient builds a fresh gradient from cryptographically secure random values.
注意事項
Stops are placed at even intervals automatically (0% and 100% for two stops; 0%, 50% and 100% for three). The blend strip below the preview interpolates the first and last colors in RGB space across ten steps, so you can judge how smooth the transition is. All processing happens in your browser.
常見問題
- Which direction is 0 degrees?
- In CSS linear-gradient, 0deg points upward (bottom to top), 90deg points right and 180deg points down. The angle here follows the CSS specification exactly.