What is CSS Gradients?
CSS Gradient is a type of technology that can be used in HTML The element background shows the smooth colour transition technology. Unlike traditional background pictures, gradients are vector graphics that are rendered in real time by browsers, which means that they have unlimited clarity and do not add to the load of pages (only a few lines of text codes).
Why use gradients in web design?
In flat design (Flat Design) Micro Gradient (Semi-flat) In the process of evolution, the Gradient Color became a tool for raising the web quality. It can solve the following design pains:
- Increase visual depth: The subtle change in colour gives space sense and photometric effect to the original monotonous plane.
- Direct user view: Use colours to draw the attention of users naturally to the button (CTA) or to important titles.
- Strengthening brand personality: Unique gradient colour schemes tend to be more impressive brands than a single colour.
- Optimistic performance optimization: Replaces the large background map with high resolution, significantly reducing HTTP requests and bandwidth consumption, and increasing the speed of page loading.
Detailed three core gradient types
- Linear Gradient: Colours transition in a straight line. You can adjust the angle (0° to 360°) to change the direction of the flow.
- Radial: Colours spread from centre point to centre in circular or elliptical form and are often used to create light or spotlight effects.
- Conical gradient (Conic): Colour rotates around the center point clockwise, similar to a wheel or a pie map, which is very popular in modern UI.
Common Question Answers (FAQ)
Q: Is the resulting code compatible with all browsers?
A: Yes. The code generated by this tool follows W3C Standards. For an extremely old browser, it is suggested to set a pure colour background as a retreat (Fallback).
Q: How to create more perceptible gradients?
A: It is proposed to add colours of the same colour but with different visibility to the colour node, or to use transparency (RBBA) as appropriate.
Q: Can this tool generate multiple gradients?
A: Multinodes gradients currently supporting a single layer. If multilayered superimposes are required, the resulting code can be used as
background-image
attribute part of the grouping with other layers.