Generator Gradien CSS

Buat gradien CSS yang indah dengan pratinjau langsung. Sesuaikan warna, arah, dan jenis.

#
#

Kode CSS

Gradien Populer

Pertanyaan yang Sering Diajukan

A linear gradient transitions colors along a straight line at a specified angle — for example, top to bottom or left to right. A radial gradient transitions colors outward from a center point in a circular or elliptical shape. Linear gradients are most common for backgrounds and banners, while radial gradients create spotlight or glow effects. CSS also supports conic gradients, which sweep colors around a center point.
CSS linear gradients use the syntax: linear-gradient(angle, color1, color2). The angle sets the direction — 0deg goes bottom to top, 90deg goes left to right, and 180deg goes top to bottom. You can also use keywords like 'to right' or 'to bottom left'. Color stops can include positions: linear-gradient(90deg, #FF0000 0%, #0000FF 50%, #00FF00 100%) places blue at the midpoint.
CSS gradients support an unlimited number of color stops. While two-stop gradients are most common, three or four stops create richer transitions. Each stop can have an optional position (percentage or length) to control where in the gradient it appears. Too many stops can make gradients look muddy — for clean results, use 2 to 4 stops with colors that are neighbors on the color wheel.
Yes. CSS gradients accept any angle value from 0deg to 360deg. Popular choices include 45deg (diagonal) and 135deg (reverse diagonal). You can also use fractional values like 137.5deg. The angle defines the direction of the gradient line: 0deg points upward, and the angle increases clockwise. Combining non-standard angles with carefully chosen colors can create unique, dynamic visual effects.
Yes. CSS linear-gradient() and radial-gradient() have been supported in all major browsers since 2015, including Chrome, Firefox, Safari, and Edge. No vendor prefixes are needed for modern browsers. The newer conic-gradient() has full support since 2022. Gradients are rendered by the browser's CSS engine and are resolution-independent — they look crisp on any screen density without requiring image files.

Artikel Terkait