Skip to content

Instantly share code, notes, and snippets.

@bitdewy
Last active January 4, 2016 03:09
Show Gist options
  • Save bitdewy/8560413 to your computer and use it in GitHub Desktop.
Save bitdewy/8560413 to your computer and use it in GitHub Desktop.
cyou logo
body {
margin: 0;
padding: 0;
font: 12px Tahoma, arial, sans-serif;
}
header {
font-family: 'Segoe UI Light', 'Segoe UI', 'Microsoft Jhenghei', '微软雅黑', sans-serif;
color: #666;
font-size: 50px;
text-align: center;
margin-top: 50px;
}
.author {
font-size: 0.6em;
}
.author a {
color: #5FB7E9;
text-decoration: none;
}
.author a:hover {
color: #4B9BC9;
}
#cyou {
width: 400px;
height: 400px;
margin: 0 auto;
margin-top: 30px;
position: relative;
display: block;
}
.logo {
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
transition: all 2.0s ease-in-out;
-webkit-transition: all 2.0s ease-in-out;
}
#cyou:hover .logo {
transform: rotateY(360deg);
-webkit-transform: rotateY(360deg);
}
.circle {
position: absolute;
top: 0px;
left: 100px;
width: 200px;
height: 200px;
border-radius: 200px;
transform-origin: bottom center;
-webkit-transform-origin: bottom center;
}
.top {
position: absolute;
top: 0px;
left: 100px;
overflow: hidden;
}
.top-left {
overflow: hidden;
transform: rotate(-60deg);
-webkit-transform: rotate(-60deg);
}
.bottom-left {
overflow: hidden;
transform: rotate(-120deg);
-webkit-transform: rotate(-120deg);
}
.bottom {
overflow: hidden;
transform: rotate(180deg);
-webkit-transform: rotate(180deg);
}
.bottom-right {
overflow: hidden;
transform: rotate(120deg);
-webkit-transform: rotate(120deg);
}
.top-right {
overflow: hidden;
transform: rotate(60deg);
-webkit-transform: rotate(60deg);
}
.central {
position: absolute;
top: 100px;
left: 100px;
}
.leaf {
position: absolute;
top: 0px;
left: 0px;
width: 200px;
height: 200px;
border-radius: 200px;
transform-origin: bottom center;
-webkit-transform-origin: bottom center;
transform: rotate(60deg);
-webkit-transform: rotate(60deg);
}
.leaf-last {
position: absolute;
top: 0px;
left: 0px;
width: 200px;
height: 200px;
border-radius: 200px;
transform-origin: bottom center;
-webkit-transform-origin: bottom center;
transform: rotate(-60deg);
-webkit-transform: rotate(-60deg);
}
.red {
background: radial-gradient(bottom center, circle, #FFF, #E94A41 44%, #E6003C 45%, #BF0008);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #E94A41 44%, #E6003C 45%, #BF0008);
background: -moz-radial-gradient(bottom center, circle, #FFF, #E94A41 44%, #E6003C 45%, #BF0008);
background: -ms-radial-gradient(bottom center, circle, #FFF, #E94A41 44%, #E6003C 45%, #BF0008);
}
.orange {
background: radial-gradient(bottom center, circle, #FFF, #EB6400 44%, #F08200 45%, #E8350C);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #EB6400 44%, #F08200 45%, #E8350C);
background: -moz-radial-gradient(bottom center, circle, #FFF, #EB6400 44%, #F08200 45%, #E8350C);
background: -ms-radial-gradient(bottom center, circle, #FFF, #EB6400 44%, #F08200 45%, #E8350C);
}
.yellow {
background: radial-gradient(bottom center, circle, #FFF, #FBC703 44%, #FFE100 45%, #EF8300);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #FBC703 44%, #FFE100 45%, #EF8300);
background: -moz-radial-gradient(bottom center, circle, #FFF, #FBC703 44%, #FFE100 45%, #EF8300);
background: -ms-radial-gradient(bottom center, circle, #FFF, #FBC703 44%, #FFE100 45%, #EF8300);
}
.green {
background: radial-gradient(bottom center, circle, #FFF, #21AB3C 44%, #8DC21F 45%, #02A23E);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #21AB3C 44%, #8DC21F 45%, #02A23E);
background: -moz-radial-gradient(bottom center, circle, #FFF, #21AB3C 44%, #8DC21F 45%, #02A23E);
background: -ms-radial-gradient(bottom center, circle, #FFF, #21AB3C 44%, #8DC21F 45%, #02A23E);
}
.indigo {
background: radial-gradient(bottom center, circle, #FFF, #03A0E8 44%, #0085D0 45%, #0055A7);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #03A0E8 44%, #0085D0 45%, #0055A7);
background: -moz-radial-gradient(bottom center, circle, #FFF, #03A0E8 44%, #0085D0 45%, #0055A7);
background: -ms-radial-gradient(bottom center, circle, #FFF, #03A0E8 44%, #0085D0 45%, #0055A7);
}
.blue {
background: radial-gradient(bottom center, circle, #FFF, #3853A2 44%, #374198 45%, #2C1F86);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #3853A2 44%, #374198 45%, #2C1F86);
background: -moz-radial-gradient(bottom center, circle, #FFF, #3853A2 44%, #374198 45%, #2C1F86);
background: -ms-radial-gradient(bottom center, circle, #FFF, #3853A2 44%, #374198 45%, #2C1F86);
}
.purple {
background: radial-gradient(bottom center, circle, #FFF, #660099);
background: -webkit-radial-gradient(bottom center, circle, #FFF, #660099);
background: -moz-radial-gradient(bottom center, circle, #FFF, #660099);
background: -ms-radial-gradient(bottom center, circle, #FFF, #660099);
}
.small-leaf {
position: absolute;
top: 0px;
left: 0px;
width: 200px;
height: 200px;
border-radius: 200px;
background-color: white;
transform-origin: bottom center;
-webkit-transform-origin: bottom center;
transform: rotate(120deg);
-webkit-transform: rotate(120deg);
}
.copyright {
margin: 50px 0 0 0;
height: 50px;
color: #999;
font-family: Tahoma;
font-size: 12px;
text-align: center;
}
.copyright a {
color: #999;
text-decoration: none;
}
.copyright a:hover,
.copyright a:focus {
outline: none;
text-decoration: underline;
}
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="[email protected]" />
<meta name="keywords" content="cyou" />
<meta name="description" content="logo" />
<link rel="stylesheet" type="text/css" href="logo-css3.css" />
<title>CSS3 Changyou Logo</title>
</head>
<body>
<header>
CSS3 Changyou Logo
<div class='author'>By <a href="http://bitdewy.github.io/" target="_blank">bitdewy</a></div>
</header>
<a id="cyou" href="http://bitdewy.github.io" target="_blank">
<div class='logo'>
<div class="circle top purple"></div>
<div class="circle top-left purple">
<div class="leaf orange"></div>
</div>
<div class="circle bottom-left purple">
<div class="leaf yellow"></div>
</div>
<div class="circle bottom purple">
<div class="leaf green"></div>
</div>
<div class="circle bottom-right purple">
<div class="leaf indigo"></div>
</div>
<div class="circle top-right purple">
<div class="leaf blue"></div>
<div class="leaf-last red"></div>
</div>
<div class="circle top">
<div class="bottom-right small-leaf"></div>
</div>
<div class="circle top-left">
<div class="top-right small-leaf"></div>
</div>
<div class="circle bottom-left">
<div class="bottom-right small-leaf"></div>
</div>
<div class="circle bottom">
<div class="top-right small-leaf"></div>
</div>
<div class="circle bottom-right">
<div class="top small-leaf"></div>
</div>
<div class="circle top-right">
<div class="top-left small-leaf"></div>
</div>
</div>
</a>
<div class="copyright">Copyright &copy; <script>document.write(new Date().getFullYear());</script> <a href="http://bitdewy.github.io/" target="_blank">bitdewy</a>. All Rights Reserved.</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment