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 / 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 / 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 / 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 / webkit-overflow-scrolling: touch
Created October 15, 2011 05:14
webkit-overflow-scrolling: touch
overflow: scroll;
-webkit-overflow-scrolling: touch;
@parrfolio
parrfolio / jqueryRotateTabs
Created October 26, 2011 15:32
Simple Auto Rotate Tabs Jquery
$(function() {
var $list = $('#animation li');
$list.filter(':first').addClass('go');
setInterval(function() {
if( $list.filter('.go').index() !== $list.length - 1 ) {
$list.filter('.go').removeClass('go').next().addClass('go');
}
else {
$list.removeClass('go').filter(':first').addClass('go');
@parrfolio
parrfolio / css
Created November 4, 2011 17:05
Vertical Center Boxes
.block {
text-align: center;
background: #c0c0c0;
border: #a0a0a0 solid 1px;
margin: 20px;
}
.block:before {
content: '';
display: inline-block;
@parrfolio
parrfolio / Styling_Ordered_List_Numbers
Created November 21, 2011 17:37
Styling Ordered List Numbers
ol {
counter-reset:li; /* Initiate a counter */
margin-left:0; /* Remove the default left margin */
padding-left:0; /* Remove the default left padding */
}
ol > li {
position:relative; /* Create a positioning context */
margin:0 0 6px 2em; /* Give each list item a left margin to make room for the numbers */
padding:4px 8px; /* Add some spacing around the content */
list-style:none; /* Disable the normal item numbering */
@parrfolio
parrfolio / jquery.animate.done.callback
Created December 12, 2011 18:07
jQuery Animation Done Callback
$('div').animate({"opacity": "0"}, 1000).promise().done(function(){
// animations are finished, run code
});
@parrfolio
parrfolio / slideup-slidedown
Created February 29, 2012 00:02
Slide Up/Slide Down Accessible jQuery
var $button = $('#myButton'),
$text = $('#myText'),
visible = true;
$button.click(function(){
if ( visible ) {
$text.slideUp('fast',function(){
$text.addClass('hide')
.slideDown(0);
});
@parrfolio
parrfolio / image-replacement
Created March 6, 2012 18:13
Updated CSS Image Replacement
.foo {
font: 0/0 a;
color: transparent;
text-shadow: none;
background: url("your-image-here");
}