-
-
Save mlem/cc2943b3566173f7ed7e to your computer and use it in GitHub Desktop.
Yin-Yang Pure 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
| #olaquehace { | |
| width: 100px; height: 200px; | |
| background: #F6020C; | |
| border-color: #00F900; | |
| border-style: solid; | |
| border-width: 2px 100px 2px 2px; | |
| border-radius: 100%; | |
| position: relative; | |
| } | |
| #olaquehace:before { | |
| content: ""; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| background: #F6020C; | |
| border: 36px solid #00F900; | |
| border-radius: 100%; | |
| width: 28px; | |
| height: 28px; | |
| } | |
| #olaquehace:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 50%; | |
| background: #00F900; | |
| border: 36px solid #F6020C; | |
| border-radius:100%; | |
| width: 28px; | |
| height: 28px; | |
| } | |
| #olaquehace { | |
| margin: 20px; | |
| -webkit-animation-name: spin; | |
| -webkit-animation-duration: 3000ms; | |
| -webkit-animation-iteration-count: infinite; | |
| -webkit-animation-timing-function: linear; | |
| -moz-animation-name: spin; | |
| -moz-animation-duration: 3000ms; | |
| -moz-animation-iteration-count: infinite; | |
| -moz-animation-timing-function: linear; | |
| -ms-animation-name: spin; | |
| -ms-animation-duration: 3000ms; | |
| -ms-animation-iteration-count: infinite; | |
| -ms-animation-timing-function: linear; | |
| animation-name: spin; | |
| animation-duration: 3000ms; | |
| animation-iteration-count: infinite; | |
| animation-timing-function: linear; | |
| } | |
| @-ms-keyframes spin { | |
| from { -ms-transform: rotate(360deg); } | |
| to { -ms-transform: rotate(0deg); } | |
| } | |
| @-moz-keyframes spin { | |
| from { -moz-transform: rotate(360deg); } | |
| to { -moz-transform: rotate(0deg); } | |
| } | |
| @-webkit-keyframes spin { | |
| from { -webkit-transform: rotate(360deg); } | |
| to { -webkit-transform: rotate(0deg); } | |
| } | |
| @keyframes spin { | |
| from { | |
| transform:rotate(360deg); | |
| } | |
| to { | |
| transform:rotate(0deg); | |
| } | |
| } |
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
| <html> | |
| <head> | |
| <link href='yinyang.css' rel="stylesheet" type="text/css"> | |
| </head> | |
| <body> | |
| <div id="olaquehace"></div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment