Arrange Two or More Colors in Linear Formats Using CSS3 Gradients

Nikitha N
Updated on 29-Jun-2020 10:16:13

127 Views

Linear gradients are used to arrange two or more colors in linear formats.ExampleYou can try to run the following code to implement linear gradients in CSS3 −Live Demo                    #grad1 {             height: 100px;             background: -webkit-linear-gradient(pink,green);             background: -o-linear-gradient(pink,green);             background: -moz-linear-gradient(pink,green);             background: linear-gradient(pink,green);          }                               Output

CSS3 Multi-color Gradients

Prabhas
Updated on 29-Jun-2020 10:14:59

215 Views

You can try to run the following code to implement multi-color gradients in CSS3 −ExampleLive Demo                    #grad2 {             height: 100px;             background: -webkit-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: -o-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: -moz-linear-gradient(red, orange, yellow, red, blue, green,pink);             background: linear-gradient(red, orange, yellow, red, blue, green,pink);          }                        

CSS3 HSL Color Property

Srinivas Gorla
Updated on 29-Jun-2020 10:14:27

246 Views

HSL stands for hue, saturation, lightness. Here, Huge is a degree of the color wheel, saturation and lightness are percentage values between 0 to 100%. ExampleThe following example shows HSL color property:Live Demo                    #g1 {background-color:hsl(120, 100%, 50%);}          #g2 {background-color:hsl(120,100%,75%);}          #g3 {background-color:hsl(120,100%,25%);}                     HSL colors:       Green       Normal Green       Dark Green    

CSS3 Repeat Radial Gradients

varun
Updated on 29-Jun-2020 10:14:02

253 Views

You can try to run the following code to implement repeat radial gradients in CSS3 −ExampleLive Demo                    #grad1 {             height: 100px;             width: 550px;             background: -webkit-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: -o-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: -moz-repeating-radial-gradient(blue, yellow 10%, green 15%);             background: repeating-radial-gradient(blue, yellow 10%, green 15%);          }                        

CSS3 Radial Gradients

usharani
Updated on 29-Jun-2020 10:13:35

158 Views

Radial gradients appear at the center. You can try to run the following code to implement radial gradients in CSS3 −ExampleLive Demo                    #grad1 {             height: 100px;             width: 550px;             background: -webkit-radial-gradient(red 5%, green 15%, pink 60%);             background: -o-radial-gradient(red 5%, green 15%, pink 60%);             background: -moz-radial-gradient(red 5%, green 15%, pink 60%);             background: radial-gradient(red 5%, green 15%, pink 60%);          }                        

Rotate Div with Skew Y Axis using CSS

Abhinanda Shri
Updated on 29-Jun-2020 10:10:17

257 Views

You can try to run the following code to rotate div with skew y-axis using CSS −ExampleLive Demo                    div {              width: 300px;              height: 100px;              background-color: pink;              border: 1px solid black;           }           div#skewDiv {              /* IE 9 */              -ms-transform: skewY(20deg);              /* Safari */              -webkit-transform: skewY(20deg);              /* Standard syntax */              transform: skewY(20deg);           }                              Welcome to my website.                      Welcome to my website.          

CSS3 Linear Gradients

varma
Updated on 29-Jun-2020 10:09:50

178 Views

Linear gradients are used to arrange two or more colors in linear formats like top to bottom.ExampleYou can try to run the following code to implement linear gradients in CSS3 −Live Demo                    #grad1 {             height: 100px;             background: -webkit-linear-gradient(pink,green);             background: -o-linear-gradient(pink,green);             background: -moz-linear-gradient(pink,green);             background: linear-gradient(pink,green);          }                                

CSS3 HSLA Color Property

Sreemaha
Updated on 29-Jun-2020 10:09:18

204 Views

HSLA stands for hue, saturation, lightness, and alpha. The alpha value specifies the opacity as shown RGBA.ExampleThe following example shows HSLA color property −Live Demo                    #d1 {background-color:hsla(120,100%,50%,0.3);}          #d2 {background-color:hsla(120,100%,75%,0.3);}          #d3 {background-color:hsla(120,100%,25%,0.3);}                     HSLA colors:       Less opacity green       Green       Green    

Rotate Element Using Y-Axis with CSS3

Priya Pallavi
Updated on 29-Jun-2020 10:08:48

139 Views

Use the rotate(angle) method to rotate transform the element using y-axis with CSS3 −ExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: pink;             border: 1px solid black;          }          div#yDiv {             -webkit-transform: rotateY(150deg);             /* Safari */             transform: rotateY(150deg);             /* Standard syntax */          }                              tutorials point.com                Rotate Y axis                tutorials point.com.          

Rotate Element Using X-Axis with CSS3

Giri Raju
Updated on 29-Jun-2020 10:04:58

246 Views

Use the rotateX(angle) method to rotate transform the element by using x-axis with CSS3 −ExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: pink;             border: 1px solid black;          }          div#myDiv {             -webkit-transform: rotateX(150deg);             /* Safari */             transform: rotateX(150deg);             /* Standard syntax */          }                              tutorialspoint.com             Rotate X-axis                tutorialspoint.com          

Advertisements