Skip to content

Instantly share code, notes, and snippets.

View roachhd's full-sized avatar

Lachlan Seward roachhd

View GitHub Profile
<div class="box red"></div>
<div class="box blue"></div>
<div class="box red"></div>
<div class="box blue"></div>
<div class="box red"></div>
<div class="box blue"></div>
<div class="box red"></div>
<div class="box blue"></div>
@roachhd
roachhd / dabblet.css
Last active August 29, 2015 14:08 — forked from LeaVerou/dabblet.css
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@roachhd
roachhd / dabblet.css
Last active August 29, 2015 14:08 — forked from LeaVerou/dabblet.css
/**
* Border clipping with border-image
* Support: Chrome, Opera, Safari, Firefox. Cannot get it to work in IE11, even though it supports border-image…
* Note: In CSS Backgrounds & Borders 4, there will be a property to clip borders (likely called border-clip). Until then though…
* Author: Lea Verou
*/
div {
border-top: .2em solid; /* Sets the thickness, also serves as fallback when no border-image */
border-image: 100% 0 0 linear-gradient(90deg, currentColor 5em, transparent 0); /* 5em is the width of clipped border */