-
-
Save mylamour/aebc012fa09eabdfc9c2cfd0b892983f to your computer and use it in GitHub Desktop.
Draw a Taichi symbol with CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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