Skip to content

Instantly share code, notes, and snippets.

View jordangray's full-sized avatar
💭
I may be slow to respond.

Jordan Gray jordangray

💭
I may be slow to respond.
View GitHub Profile
@jordangray
jordangray / dabblet.css
Created November 29, 2012 08:52
Animation timeline mockup
/*
* Animation timeline mockup
*/
#timeline {
background: #f9f9f9;
font: normal 14px/18px Consolas, Courier New, Courier, monospace;
height: 200px;
@jordangray
jordangray / dabblet.css
Created April 18, 2013 09:50
display: run-in example (bad browser support)
/* display: run-in example (bad browser support) */
dl {
border: 1px solid #ccc;
overflow: hidden;
width: 50%;
}
dt {
display: run-in;
@jordangray
jordangray / jquery.shimFormAction.coffee
Last active February 1, 2017 17:16
A simple shim for the HTML5 formaction attribute.
# Test for formaction attribute support in Modernizer.
Modernizr.addTest 'formaction', 'formaction' of document.createElement('input')
# Shim for formaction attributes on buttons and inputs.
$.fn.shimFormAction = ->
return this if Modernizr.formaction
this.each ->
$(this).find 'input,button'
.filter '[formaction!=""][formaction]'
@jordangray
jordangray / dabblet.css
Created July 19, 2013 13:44
Glowing circle patches
/**
* Glowing circle patches
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
height: 500px;
}
@jordangray
jordangray / dabblet.css
Created September 11, 2013 15:07
Splay circles from top along a circular path
/**
* Splay circles from top along a circular path
* http://stackoverflow.com/questions/18735723/spherical-motion-around-object-using-javascript
*/
@keyframes rotate {
0% {
top: -30px;
left: -30px;
transform: rotate(0deg) translateY(-150px) rotate(0deg);
@jordangray
jordangray / dabblet.css
Last active December 22, 2015 20:18
Splay circles from top along a circular path
/**
* Splay circles from top along a circular path
* http://stackoverflow.com/questions/18735723/spherical-motion-around-object-using-javascript
*/
@keyframes rotate {
0%, 50% {
transform: rotate(0deg) translateY(-150px) rotate(0deg);
}
}
@jordangray
jordangray / dabblet.css
Created September 24, 2013 15:05
Alternative datepicker interface
/**
* Alternative datepicker interface
*/
body {
background: #f06;
background: linear-gradient(135deg, #f00, orange);
min-height: 100%;
}
@jordangray
jordangray / dabblet.css
Created October 10, 2013 11:48
SO #19125580: smiley face animation.
/* SO #19125580: smiley face animation. */
fieldset {
color: #666;
font: 14px Segoe UI, sans-serif;
border: 2px solid #ccc;
width: 400px;
margin: auto;
}
@jordangray
jordangray / dabblet.css
Created November 21, 2013 16:58
SO #20126262: make last inline child fill available space.
/*
* SO #20126262: make last inline child fill available space.
*/
div {
display: flex;
flex-wrap: wrap;
}
span:last-child {
@jordangray
jordangray / dabblet.css
Last active January 1, 2016 05:29
Star Wars opening crawl effect
/* Star Wars opening crawl effect */
.fade {
margin: -40px auto 0;
max-width: 540px;
position: relative;
width: 50%;
transform: perspective(20px) rotateX(7deg) translateZ(-6px);
}