Skip to content

Instantly share code, notes, and snippets.

View athanassiadis's full-sized avatar

athanassiadis

  • Your Majesty
  • Amsterdam
View GitHub Profile
@athanassiadis
athanassiadis / Modernizr placeholder
Created January 12, 2012 15:36
Modernizr placeholder
if (!Modernizr.input.placeholder){
$('input[type=text]').each( function(){
$(this).attr('value', $(this).attr('placeholder') )
.focus(
function(){
var ph = $(this).attr('value');
$(this).attr('value','').blur( function(){
if($(this).attr('value').length < 1 ){
$(this).attr('value', ph);
}
@athanassiadis
athanassiadis / test_gist
Created January 11, 2012 15:08
Test Gist
//Wooohaaa testing testing
-webkit-transition: background 300ms ease-in 2s; /* property duration timing-function delay */
-moz-transition: background 300ms ease-in 2s;
-o-transition: background 300ms ease-in 2s;
transition: background 300ms ease-in 2s;
-webkit-transition-property: background;
-webkit-transition-duration: 300ms;
-webkit-transition-timing-function: ease-in;
-webkit-transition-delay: 100ms;