Skip to content

Instantly share code, notes, and snippets.

@valhead
valhead / dabblet.css
Created December 28, 2011 03:28 — forked from anonymous/dabblet.css
Transitions
/* Transitions */
div {
background: #f9e;
width: 200px;
padding: 10px;
margin: 40px 0;
color: white
}
div:hover {
@valhead
valhead / dabblet.css
Created December 28, 2011 04:58
Easing comparison
/* Easing comparison */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;}
div:hover {width: 500px;}
div:nth-child(n+4):hover { width: 208px; }
div:nth-child(1) { transition: 0.4s ease; }
div:nth-child(2) { transition: 0.4s ease-in-out; }
div:nth-child(3) { transition: 0.4s linear; }
@valhead
valhead / dabblet.css
Created December 29, 2011 00:52
Easing comparison
/* Easing comparison */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;}
div:hover {width: 500px;}
div:nth-child(n+4):hover { width: 208px; }
div:nth-child(1) { transition: 0.4s ease; }
div:nth-child(2) { transition: 0.4s ease-in-out; }
div:nth-child(3) { transition: 0.4s linear; }
@valhead
valhead / dabblet.css
Created December 29, 2011 00:53
Easing comparison
/* Easing comparison */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;}
div:hover {width: 500px;}
div:nth-child(n+4):hover { width: 208px; }
div:nth-child(1) { transition: 0.4s ease; }
div:nth-child(2) { transition: 0.4s ease-in-out; }
div:nth-child(3) { transition: 0.4s linear; }
@valhead
valhead / dabblet.css
Created December 29, 2011 00:59
Easing comparison
/* Easing comparison */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;}
div:hover {width: 500px;}
div:nth-child(n+4):hover { width: 208px; }
div:nth-child(1) { transition: 0.4s ease; }
div:nth-child(2) { transition: 0.4s ease-in-out; }
div:nth-child(3) { transition: 0.4s linear; }
@valhead
valhead / dabblet.css
Created December 29, 2011 00:59
Easing comparison
/* Easing comparison */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;}
div:hover { width: 208px; }
div:nth-child(1){ transition: 0.4s ease; }
div:nth-child(2) { transition: 0.4s ease-in-out; }
div:nth-child(3) { transition: 0.4s linear; }
@valhead
valhead / dabblet.css
Created December 30, 2011 01:16
Ease - pixel snapping?
/* Ease - pixel snapping? */
body{background:#F7F8F8;}
div {background: #C10280; width: 200px; height:30px; padding: 10px;margin: 30px 0;color: white;}
div:nth-child(1):hover { width: 208px; }
div:nth-child(2):hover {width:220px;}
div:nth-child(3):hover {height:40px;}
div:nth-child(4):hover {opacity:.2;}
div { transition: 0.4s ease; }
@valhead
valhead / dabblet.css
Created January 6, 2012 01:42
crossfade
/**
* crossfade
*/
div {width:250px; height:80px border: 1px solid red;;}
#cross1 {background:url (http://imgur.com/CHfDi);}
#cross2 {background:url(http://imgur.com/VeXjs);}
@valhead
valhead / dabblet.css
Created January 6, 2012 01:56
Playing with crossfades
/**
* Playing with crossfades
*/
div {width:250px; height:80px;position:absolute;}
div:nth-child(1),div:nth-child(2) {top:50px; left:10px;}
div:nth-child(3),div:nth-child(4) {top:50px; left:300px;}
div:nth-child(5),div:nth-child(6) {top:50px; left:600px;}
/*
@valhead
valhead / dabblet.css
Created January 21, 2012 19:50
Playing with crossfades
/**
* Playing with crossfades
*/
div {width:250px; height:80px;position:absolute;}
div:nth-child(1),div:nth-child(2) {top:50px; left:10px;}
div:nth-child(3),div:nth-child(4) {top:50px; left:300px;}
div:nth-child(5),div:nth-child(6) {top:50px; left:600px;}
/*