Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the CSS3HSLA color mode

Shulou Source: shulou.com Published: 2022-06-03 13:44:55 10月02日 Update

In this issue, the editor will bring you about what is the CSS3HSLA color mode. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

HSLA color mode is an extension of HSL color mode, which adds opacity parameters on the basis of color, saturation and brightness. Using the HSLA color mode, you can design different transparency effects.

Syntax:

Hsla (,)

Represents opacity, with a value between 0 and 1.

Example: simulate a gradient bar

XML/HTML Code copies content to the clipboard

HSLA Color div {height:20px;} div:nth-child (1) {background:hsla (120pc50% 50pcr 0.1);} div:nth-child (2) {background:hsla (120pc50% 50pcr 0.2);} div:nth-child (3) {background:hsla (120min50% 50pcr 0.3);} div:nth-child (4) {background:hsla (120mai 50% 50pcr 0.4) } div:nth-child (5) {background:hsla (120min50% 50% precinct 0.5);} div:nth-child (6) {background:hsla (120min50% 50pr 0.6);} div:nth-child (7) {background:hsla (120min50% 50pc0.7);} div:nth-child (8) {background:hsla (120min50% 50pc50%) 0.8) } div:nth-child (9) {background:hsla (120, 50% 50, 50, 0.9);} div:nth-child (10) {background:hsla (120, 50, 50, 50, 50, 1);}

Demo effect:

The above is the editor for you to share what is the CSS3HSLA color mode, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Color mode content effect transparency analysis different professional small and medium between brightness rich in content clipboard parameters foundation examples that is articles more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Microsoft Shulou Information Shulou Technology