Skip to content

Instantly share code, notes, and snippets.

@schadeck
schadeck / dabblet.css
Created October 7, 2013 17:20 — forked from LeaVerou/dabblet.css
Easy trapezoids with 3D transforms
/**
* Easy trapezoids with 3D transforms
*/
p {
position: relative;
display: inline-block;
padding: 1em;
margin: 2em;
}
@schadeck
schadeck / dabblet.css
Created July 29, 2013 14:21 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@schadeck
schadeck / index.html
Created July 9, 2013 04:13
A CodePen by schadeck. Custom Navigation for SlidesJS - Custom navigation example for SlidesJS 3.0. This will hide the default navigation and emulate the click events through the custom markup.
<div class="container">
<div id="slides">
<div>
<img src="http://placehold.it/600x300/c66/fff&text=[slide+1]" width="100%" alt=""/>
</div>
<div>
<img src="http://placehold.it/600x300/6c6/fff&text=[slide+2]" width="100%" alt=""/>
</div>
<div>
<img src="http://placehold.it/600x300/36a/fff&text=[slide+3]" width="100%" alt=""/>
@schadeck
schadeck / dabblet.css
Created April 28, 2013 18:57
Circular Tooltip (SO)
/**
* Circular Tooltip (SO)
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
/* generic styles for button & circular menu */
@schadeck
schadeck / dabblet.css
Created April 28, 2013 18:57
Circular Tooltip (SO)
/**
* Circular Tooltip (SO)
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
/* generic styles for button & circular menu */
@schadeck
schadeck / dabblet.css
Created April 8, 2013 14:42
demo to explain chained transforms
/**
* demo to explain chained transforms
*/
* { margin: 0; }
.wrap, .wrap * { display: block; width: 4em; height: 4em; }
.wrap { outline: dashed 1px dodgerblue; margin: 13em auto 0; }
.deg45 {
position: absolute;
animation: ani 8s infinite;
}
@schadeck
schadeck / dabblet.css
Created October 4, 2012 15:56
CSS3 Space Invader
/**
* CSS3 Space Invader
*/
body { width: 200px; margin: 100px auto; }
#space-invader{
box-shadow:
0 0 0 1em#000,
0 1em 0 1em#000,
-2.5em 1.5em 0 .5em#000,
2.5em 1.5em 0 .5em#000,
@schadeck
schadeck / dabblet.css
Created September 27, 2012 18:57
Using overflow: hidden to prevent text wrapping around a floated element
/**
* Using overflow: hidden to prevent text wrapping around a floated element
*/
div { width: 400px; margin: 25px auto; }
img { float: left; margin-right: 1em; }
span { display: block; overflow: hidden; }
@schadeck
schadeck / gist:3428930
Created August 22, 2012 20:12
Example for gist.io

Example Page for gist.io

var somecode = code;

@schadeck
schadeck / README.md
Created August 22, 2012 19:16
simple lightbox w/ simple slideshow

A basic example of a jQuery powered lightbox with a fade slideshow.