Skip to content

Instantly share code, notes, and snippets.

@maxw3st
maxw3st / dabblet.css
Created April 17, 2012 23:19 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
@maxw3st
maxw3st / dabblet.css
Created April 18, 2012 02:06
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
@maxw3st
maxw3st / dabblet.css
Created April 21, 2012 13:54 — forked from LeaVerou/dabblet.css
Image interpolation demo
/* Image interpolation demo */
@keyframes browsers {
from, to { background-image: url('http://lea.verou.me/css-4d/img/firefox-logo.png'); }
20% { background-image: url('http://lea.verou.me/css-4d/img/chrome-logo.png'); }
40% { background-image: url('http://lea.verou.me/css-4d/img/safari-logo.png'); }
60% { background-image: url('http://lea.verou.me/css-4d/img/opera-logo.png'); }
80% { background-image: url('http://lea.verou.me/css-4d/img/ie-logo.png'); }
}
@maxw3st
maxw3st / dabblet.css
Created April 22, 2012 10:34 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html { background: white; }
.scrollbox {
overflow: auto;
@maxw3st
maxw3st / dabblet.css
Created April 27, 2012 21:27 — forked from LeaVerou/dabblet.css
Playing with background-attachment
/**
* Playing with background-attachment
*/
pre {
max-height: 150px;
border: 1px solid silver;
overflow: auto;
background: url('http://placekitten.com/200/200');
color: white;
@maxw3st
maxw3st / dabblet.css
Created April 27, 2012 21:28 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@maxw3st
maxw3st / fronttrends2012.txt
Created April 30, 2012 21:12 — forked from mgapatrick/fronttrends2012.txt
FrontTrends 2012
------------------------------
DAY 1
------------------------------
10:20 Vitaly Friedman: Responsive Design: Smashing Magazine's case study
http://www.smashingmagazine.com/
pre-condition:
width 1024px
fully accessible without images
@maxw3st
maxw3st / dabblet.css
Created May 4, 2012 23:15 — forked from devongovett/dabblet.css
Text masking — The SVG way
/**
* Text masking — The SVG way
*/
svg {
font: 900 500%/1.2 'Arial Black', sans-serif;
}
text {
fill: url(#wood);
@maxw3st
maxw3st / dabblet.css
Created May 5, 2012 22:12 — forked from LeaVerou/dabblet.css
Weird behavior when combining opacity & z-index: -1
/**
* Weird behavior when combining opacity & z-index: -1
*/
div {
position: relative;
width: 200px; height: 200px;
background: yellowgreen;
/* Try commenting this or setting it to 1: */
@maxw3st
maxw3st / dabblet.css
Created May 8, 2012 22:17 — forked from chriscoyier/dabblet.css
Fake animated pseudo
/**
* Fake animated pseudo
*/
div {
width: 200px;
padding: 10px;
position: relative;
background: red;
background-clip: content-box;
animation: bounce infinite alternate 0.5s;