Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Draw a Taichi symbol with CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Taichi</title>
<style>
.taichi {
width: 400px;
height: 400px;
background: linear-gradient(to right, #fff 50%, #000 50%);
box-shadow: #333 0px 0px 5px;
border-radius: 50%;
}
.taichi::before,
.taichi::after {
content: "";
display: block;
box-sizing: border-box;
width: 200px;
height: 200px;
margin-left: 100px;
border-radius: inherit;
}
.taichi::before {
background: #000;
border: 70px solid #fff;
}
.taichi::after {
background: #fff;
border: 70px solid #000;
}
</style>
</head>
<body>
<div class="taichi"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment