Skip to content

Instantly share code, notes, and snippets.

@scottsappen
Created September 22, 2013 23:00

Revisions

  1. scottsappen created this gist Sep 22, 2013.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    //when hovering, change the cover and move the element up a few pixels
    color: #9ed846;
    transform: translate(0,-4px);
    -webkit-transform: translate(0,-4px);
    -o-transform: translate(0,-4px);
    -moz-transform: translate(0,-4px);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;

    //and when done hovering, change the cover and return it to its original position
    color: #444;
    transform: translate(0,0px);
    -webkit-transform: translate(0,0px);
    -o-transform: translate(0,0px);
    -moz-transform: translate(0,0px);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;