Skip to content

Instantly share code, notes, and snippets.

View parrfolio's full-sized avatar
My God, It's Full of Stars

Ryan Parr parrfolio

My God, It's Full of Stars
View GitHub Profile
@parrfolio
parrfolio / CSS3 Transition Property Template
Created September 21, 2011 16:42
CSS3 Transition Property Template
-moz-transition-property:background, border, color;
-moz-transition-duration:250ms;
-moz-transition-timing-function:ease-in;
-moz-transition-delay:0;
-webkit-transition-property:background, border, color;
-webkit-transition-duration:250ms;
-webkit-transition-timing-function:ease-in;
-webkit-transition-delay:0;
-ms-transition-property:background, border, color;
-ms-transition-duration:250ms;
@parrfolio
parrfolio / CSS3 Text Mask for Firefox
Created September 14, 2011 05:45
CSS3 Text Mask for Firefox
body {
background: #444;
}
h2 {
font-size:68px;
color:#f1f1f1;
position:relative;
z-index:1;
font-family:helvetica, arial, sans-serif;
@parrfolio
parrfolio / Fullscreen Mode Pseudo Classes
Created June 30, 2011 19:11
Fullscreen Mode Pseudo Classes
/*--
-webkit-full-screen
-webkit-full-screen-document
--*/
/* fullscreen mode */
#video-player:-webkit-full-screen {
position:absolute;
top:0;
left:0;
@parrfolio
parrfolio / Font Smoothing
Created June 29, 2011 22:05
Font Smoothing
/* ref http://maxvoltar.com/archive/-webkit-font-smoothing */
-webkit-font-smoothing: none;
-webkit-font-smoothing: subpixel-antialiased; /* best for small sizes */
-webkit-font-smoothing: antialiased; /* best for headings and other larger type */
@parrfolio
parrfolio / Force hardware accelerated
Created June 4, 2011 21:11
Force hardware accelerated
#foo {
-webkit-transform: translateZ(0);
}
@parrfolio
parrfolio / Disable Text Sizing On iPhone
Created May 23, 2011 15:41
Disable text size adjust ont the iPhone
html {
-webkit-text-size-adjust: none;
}
@parrfolio
parrfolio / CSS3 Transforms
Created May 18, 2011 16:38
-webkit-transform-style: preserve-3d & flat
/* preserve-3d allows objects to live in a shared 3D space */
#example {
-webkit-transform-style: preserve-3d;
}
/* flat is just a painting effect and not effected by the containers perspective */
#example:hover {
-webkit-transform-style: flat;
}
@parrfolio
parrfolio / Block Level Text Align Center
Created May 17, 2011 21:36
Block Level Text Align Center
#example {
text-align: -moz-center;
text-align: -webkit-center;
}
@parrfolio
parrfolio / CSS3 User Select
Created May 17, 2011 21:14
CSS3 User Select
#foo {
-webkit-user-select: red;
-moz-user-select: red
}
@parrfolio
parrfolio / -Moz Border Colors
Created May 17, 2011 21:12
-Moz Border Colors
div {
border: 3px solid orange;
-moz-border-top-colors: red yellow blue;
-moz-border-bottom-colors: red yellow blue;
}
/* ref: https://developer.mozilla.org/en/CSS/-moz-border-top-colors */