Skip to content

Instantly share code, notes, and snippets.

View LeaVerou's full-sized avatar

Lea Verou LeaVerou

View GitHub Profile
@LeaVerou
LeaVerou / dabblet.css
Created January 4, 2012 23:33
Combined filters demo
/**
* Combined filters demo
* Webkit-only at the moment (Chrome Canary or Webkit nightlies)
*/
img {
transition: .5s -webkit-filter;
}
img:first-of-type {
@LeaVerou
LeaVerou / dabblet.css
Created January 5, 2012 01:03
Colorize black element with filters
/**
* Colorize black element with filters
* Webkit-only at the moment (Chrome Canary or Webkit nightlies)
*/
body {
background: pink;
}
div {
@LeaVerou
LeaVerou / dabblet.css
Created January 14, 2012 19:00
Elliptical gradient test
/**
* Elliptical gradient test
*/
background: #f06;
background: radial-gradient(closest-side, #f06 98%, gold 99%);
min-height:100%;
@LeaVerou
LeaVerou / dabblet.css
Created January 16, 2012 22:26
Transitioning visibility
/**
* Transitioning visibility
*/
div {
width: 100px; height: 100px;
background: #f06;
transition: 1s background, 1s visibility step-start;
}
/**
* oli
*/
body { position: relative; margin: 50px; }
div {
position: absolute;
top: 0; left: 0;
border: 40px solid black;
@LeaVerou
LeaVerou / dabblet.css
Created January 25, 2012 15:49
Angled Navigation?
/**
* Angled Navigation?
* to help @Chrisedmo
*/
nav li {
list-style: none;
float: left;
}
@LeaVerou
LeaVerou / dabblet.css
Created January 26, 2012 14:35
Learning CSS3
/**
* Learning CSS3
* background-size, background-origin, outline
*/
html {
min-height:100%;
background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') bottom;
background-size: cover;
}
@LeaVerou
LeaVerou / dabblet.css
Created January 26, 2012 14:55
Learning CSS3
/**
* Learning CSS3
* Multiple backgrounds, basic linear gradients
*/
html {
background: linear-gradient(black, #444);
background-color: #222;
height: 100%;
}
@LeaVerou
LeaVerou / dabblet.css
Created January 26, 2012 16:19
Weird body sizing
/**
* Weird body sizing
*/
html, body {
min-height: 100%;
}
html {
background: red;
@LeaVerou
LeaVerou / dabblet.css
Created January 27, 2012 17:09
Learning CSS3
/**
* Learning CSS3
* Before background-size, background-origin, outline
*/
html {
min-height:100%;
background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg');
}