Skip to content

Instantly share code, notes, and snippets.

View yukulele's full-sized avatar

Clément P yukulele

  • France
View GitHub Profile
@yukulele
yukulele / dabblet.css
Created March 7, 2013 13:15
Negative animation-delay to start mid-animation
/**
* Negative animation-delay to start mid-animation
*/
@keyframes test {
to { background: black }
}
html {
background: white;
@yukulele
yukulele / dabblet.css
Created March 8, 2013 09:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@yukulele
yukulele / dabblet.css
Created March 8, 2013 09:37
height of higher child
/* height of higher child */
nav{
font-size:3em;
position:absolute;
z-index:2;
}
a{
text-decoration:none;
display:inline-block;
@yukulele
yukulele / dabblet.css
Created March 13, 2013 16:23 — forked from LeaVerou/dabblet.css
Hexagon kitty - By @LeaVerou
/* Hexagon kitty - By @LeaVerou
Disappointingly inflexible, but still interesting methinks.
*/
.hexagon {
display: inline-block;
position: relative;
width: 200px;
height: 200px;
transform: scale(1.25,.707) rotate(-45deg);
@yukulele
yukulele / dabblet.css
Last active October 9, 2018 13:31
Untitled
h1 {color: #345; text-shadow: 1px 1px 2px #aaa; font-size:1.8em}
h2 {color: #567; text-shadow: 1px 1px 2px #aaa; font-size:1.1em}
h3 {margin-bottom: 0; color: #678; text-shadow: 1px 1px 2px #aaa; font-size:1em}
#sizer{
resize:horizontal;
max-width:800px;
background:#ccc;
padding:40px;
border-radius:20px;
overflow:hidden;
@yukulele
yukulele / dabblet.css
Created April 11, 2013 12:49
Untitled
/*matrix transform experiments*/
div{
width:200px;
height:200px;
margin:50px;
background:grey;
transition:transform 1s ease;
border-top-right-radius:100px;
transform:matrix(1,0,0,1,0,0);
@yukulele
yukulele / dabblet.css
Created April 11, 2013 14:06
Untitled
/*matrix experiments*/
div{
width:200px;
height:200px;
margin:50px;
background:grey;
transition:transform 1s ease;
border-top-right-radius:100px;
transform:matrix(1,0,0,1,0,0);
// if Navigation Timing is not supported, fallback to Date.naw() called on start (sufficient in many cases)
// Date.now is also polyfilled
(function(p){
if(!Date.now)
Date.now = function(){return +new Date};
if (!p.now){
var start = (p.timing && p.timing.navigationStart) || Date.now();
p.now = function now(){
return Date.now() - start;
@yukulele
yukulele / dabblet.css
Created June 5, 2013 14:42
Psuedo element test on <img>
/*
Psuedo element test on <img>
*/
h1:after{
content:"h1 after";
color:pink;
}
h1:before{
content:"h1 before";
color:blue;
@yukulele
yukulele / dabblet.css
Created January 11, 2014 11:36 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;