How to make half cut moon with CSS?

Is it possible to make a half cut moon? If it is possible state with the help of example.

Last updated:7/15/2021 12:56:41 AM

1 Answers

Ravi Vishwakarma
Ravi Vishwakarma

How to make half cut moon with CSS?

<!DOCTYPE html>

<html lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <meta charset='utf-8' />
    <style type='text/css'>
        body{
            text-align:center;
            display: flex;
            flex-direction:column;
            justify-content: center;
            align-items: center;
        }
            body div {
                margin: 50px;
            }             
.moon {
            width:200px;
            height:200px;
            border-radius:50%;
            box-shadow:20px 10px 0px 10px cyan;
        }
    </style>
    <title>Animation Demo</title>
</head>
<body>
    <div class='moon'> </div> Half cut Moon <br />
</body>
</html>


Answer