Search
Close this search box.
Course Content
CSS Basic
0/1
CSS Selectors
0/1
CSS Comments
0/1
CSS Backgrounds
0/1
CSS Borders
0/1
CSS Outline
0/1
CSS Fonts
0/1
CSS Height and Width
0/1
CSS Margins and Paddings
0/2
CSS Icons
0/1
CSS Links
0/1
CSS Lists
0/1
CSS Tables
0/1
CSS Display Properties
0/1
CSS Max-Width Property
0/1
CSS Positioning Elements
0/1
CSS Z-Index Property
0/1
CSS Overflow
0/1
CSS Float
0/1
CSS Opacity
0/1
CSS Forms
0/1
CSS Dropdowns
0/1
CSS Buttons
0/1
CSS Media Queries
0/1
About Lesson

1. Conic Gradients:

Syntax:

background: conic-gradient(from angle at position, color-stop1, color-stop2, ...);
  • angle (optional): Defines the starting angle of the gradient.
  • position (optional): Defines the position of the gradient center. Defaults to center.
  • color-stop: Similar to linear and radial gradients.

Example:

.conic-gradient: Applies a conic gradient background starting from 0 degrees with colors #ff00cc and #333399.

CSS
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Gradients Example</title>
    <style>
       
        .conic-gradient {
            background: conic-gradient(from 0deg, #ff00cc, #333399, #ff00cc);
            width: 200px;
            height: 200px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>
        <div class="conic-gradient"></div>
</body>
</html>