Skip to content

Instantly share code, notes, and snippets.

@Chrisedmo
Created August 12, 2013 21:03
Show Gist options
  • Save Chrisedmo/6215227 to your computer and use it in GitHub Desktop.
Save Chrisedmo/6215227 to your computer and use it in GitHub Desktop.
Untitled
.disc-wrap {width: 300px; height: 300px; margin: 0 auto;}
.disc-wrap:hover > li {opacity: 0.5;}
.disc-wrap:hover > li:hover {opacity: 1;}
ul {margin: 0; padding: 0;}
li {list-style: none; width: 150px; height: 150px;float: left; background-color: #eee; text-align: center;}
li:hover {transform: scale(1.25)}
li:nth-child(1) {border-top-left-radius: 100%;background-color:red; transform-origin: bottom right;}
li:nth-child(2) {border-top-right-radius: 100%;background-color:lightblue;transform-origin: bottom left}
li:nth-child(3) {border-bottom-left-radius: 100%;background-color:orange;transform-origin: top right}
li:nth-child(4) {border-bottom-right-radius: 100%;background-color:darkgreen;transform-origin: top left}
li:first-child:hover {padding-top: 10px; padding-left 10px;}
<!-- Trying a little UI thang -->
<div class="disc-wrap">
<ul>
<li>Menu1</li>
<li>Menu2</li>
<li>Menu3</li>
<li>Menu4</li>
</ul>
</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