Skip to content

Instantly share code, notes, and snippets.

@maxw3st
maxw3st / dabblet.css
Created December 10, 2012 19:10
Modified Carpet
/**
* Modified Carpet
*/
background:
radial-gradient(0% 0%, rgba(150, 150, 150, 0) 9px, #CCD3DD 10px, rgba(150, 150, 150, 1) 11px, transparent),
radial-gradient(100% 100%, rgba(150, 150, 150, 0) 9px, #CCD3DD 10px, rgba(20, 0, 150, 1) 11px, transparent),
radial-gradient(0% 100%, rgba(150, 150, 150, 0) 9px, #BEC4CE 10px, rgba(150, 150, 150, 0) 11px, transparent),
#EBEEF4;
@maxw3st
maxw3st / dabblet.css
Created December 10, 2012 19:06 — forked from LeaVerou/dabblet.css
Typing animation with pure CSS.
/**
* Typing animation with pure CSS.
* Works best in browsers supporting the ch unit.
*/
@keyframes typing { from { width: 0; } }
@keyframes blink-caret { 50% { border-color: transparent; } }
h1 {
font: bold 200% Consolas, Monaco, monospace;
@maxw3st
maxw3st / dabblet.css
Created December 4, 2012 16:14 — forked from LeaVerou/dabblet.css
Inner border-radius example
/**
* Inner border-radius example
*/
body, div { border: 1px solid; }
body { width: 100px; border-radius: 20px; }
div { margin: 10px; padding: 10px; }
@maxw3st
maxw3st / dabblet.css
Created December 1, 2012 18:16 — forked from LeaVerou/dabblet.css
Transition to height:auto on replaced elements
/**
* Transition to height:auto on replaced elements
* CSS brain teaser: If transitions to/from height:auto don’t work, why is the height transitioning here?
And why is it not transitioning when it shrinks but only when it grows?
*/
img {
width: 0; height: 0;
transition: 1s linear;
@maxw3st
maxw3st / Don't Close Me, Bro
Created November 14, 2012 21:30 — forked from tbwiii/Don't Close Me, Bro
A Bookmarklet that keeps you form accidentally closing a tab you wanted to keep open.
javascript:(function(){window.addEventListener('beforeunload',function(){return"Whoa bro, you tried to close me. \n Did you mean to do that?"})})();
@maxw3st
maxw3st / promises.md
Created November 14, 2012 19:57 — forked from domenic/promises.md
You're Missing the Point of Promises

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
    // the rest of your code goes here.
});
@maxw3st
maxw3st / dabblet.html
Created November 12, 2012 16:52 — forked from oli/dabblet.css
Untitled
<img src="http://placekitten.com/200/300" title="placekitten">
@maxw3st
maxw3st / dabblet.css
Created October 18, 2012 02:43 — forked from kizu/dabblet.css
No flexbox here
/* No flexbox here */
.wrapper {
background: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.4));
overflow: hidden;
margin: 0 0 1em;
border-radius: 1em;
}
.pane {
@maxw3st
maxw3st / dabblet.css
Created October 8, 2012 15:21 — forked from lensco/dabblet.css
box-shadow vs filter: drop-shadow 2
/**
* box-shadow vs filter: drop-shadow 2
*/
body {
background: #ddd;
font: 16px/1 sans-serif;
margin: 50px;
}
@maxw3st
maxw3st / one-mixin.scss
Created September 13, 2012 18:48 — forked from mirisuzanne/one-mixin.scss
THE MOST POWERFUL SASS MIXIN EVAR.
// Apply any css property/value pair.
@mixin css(
$azimuth: null,
$background: null,
$background-attachment: null,
$background-color: null,
$background-image: null,
$background-position: null,
$background-repeat: null,
$border: null,