Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created June 26, 2013 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enjalot/5864355 to your computer and use it in GitHub Desktop.
Save enjalot/5864355 to your computer and use it in GitHub Desktop.
lever identicon sketch
{"description":"lever identicon sketch","endpoint":"","display":"div","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"identicon.html":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/cte21p0.png"}
<div class="identicon">
<div class="bg"></div>
<div class="lever"></div>
<div class="text">IJ</div>
</div>
var display = d3.select("#display");
.identicon {
position: relative;
display:inline-block;
overflow: hidden;
width: 40px;
height: 40px;
}
.identicon div {
position: absolute;
width: 100%;
height: 100%;
}
.identicon .bg {
background: black;
}
.identicon .lever {
background: blue;
width: 200%;
height: 200%;
margin-top: -140%;
margin-left: -100%;
-webkit-transform: rotate(-14deg);
}
.identicon .text {
line-height: 200%;
text-align: center;
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment