Skip to content

Instantly share code, notes, and snippets.

@jaimeguaman
Created September 16, 2013 02:32
Show Gist options
  • Save jaimeguaman/6576111 to your computer and use it in GitHub Desktop.
Save jaimeguaman/6576111 to your computer and use it in GitHub Desktop.
CSS Gradient Yin Yang. NO More before & after PLS
/* CSS Gradient Yin Yang. NO More before & after PLS */
.shinshan{
width:40%;
height:500px;
margin:0 auto;
border-radius:50%;
overflow:hidden;
border:2px solid black;
/* chrome (webkit, blink), firefox, opera and safary (I guess). IE, you just fuck off */
background:
radial-gradient(circle at 50% 25%, black 5%, transparent 1%), /* inner tiny dot */
radial-gradient(circle at 50% 75%, white 5%, transparent 1%), /* inner tiny dot */
radial-gradient(circle at 50% 25%, white 27%, transparent 1%) 50% 0, /* da mix*/
radial-gradient(circle at 50% 75%, black 27%, transparent 1%) 50% 0, /* da mix */
-webkit-linear-gradient(left, white 50%, black 50% ); /* yin yangggg */
background:
radial-gradient(circle at 50% 25%, black 5%, transparent 1%), /* inner tiny dot */
radial-gradient(circle at 50% 75%, white 5%, transparent 1%), /* inner tiny dot */
radial-gradient(circle at 50% 25%, white 27%, transparent 1%) 50% 0, /* da mix*/
radial-gradient(circle at 50% 75%, black 27%, transparent 1%) 50% 0, /* da mix */
-moz-linear-gradient(left, white 50%, black 50% ) /* yin yangggg */
}
<div class="shinshan"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment