Skip to content

Instantly share code, notes, and snippets.

@srobbin
srobbin / index.html
Created March 18, 2013 22:52
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
@srobbin
srobbin / gist:5165332
Last active December 14, 2015 23:28
Fix for multiple backstretch DIVs on subsequent calls
/*
* Backstretch
* http://srobbin.com/jquery-plugins/backstretch/
*
* Copyright (c) 2012 Scott Robbin
* Licensed under the MIT license.
*/
;(function ($, window, undefined) {
'use strict';
@srobbin
srobbin / 3d-css-book-covers.html
Created May 22, 2012 18:10
3D CSS Book Covers - HTML
<div id="book1" class="book">
<img src="book.jpg" />
</div>
@font-face {
font-family: "Shifticons";
  src: url("../fonts/shifticons.eot"); /* IE9 Compat Modes */
  src: url("../fonts/shifticons.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
       url("../fonts/shifticons.woff") format("woff"), /* Modern Browsers */
       url("../fonts/shifticons.ttf")  format("truetype"), /* Safari, Android, iOS */
       url("../fonts/shifticons.svg#Shifticons") format("svg"); /* Legacy iOS */
}
@srobbin
srobbin / gist:2014302
Created March 11, 2012 00:56
Disabling Backstretch for printing
<style media="print">
#backstretch { display: none; }
</style>
@srobbin
srobbin / gist:2002441
Created March 8, 2012 18:13
Approach Demo: Opacity
<!--
In this demo, there are a series of circular images.
Their opacity changes as you approach each individual one.
-->
<!-- Beginning styles -->
<style>
img.circle {
float: left;
height: 80px;
@srobbin
srobbin / gist:2002330
Created March 8, 2012 17:51
Approach Demo: Grow and color
<!--
Notice that the size and color of the text above changes
as your cursor approaches it.
-->
<!-- Beginning styles -->
<style>
a#demo-link {
font-size: 24px;
color: #FFFFCC;
@srobbin
srobbin / gist:1979034
Created March 5, 2012 16:06
Intelligist Demo: Live JS
/*
We can even execute JavaScript.
For example, here is a simple jQuery plugin that shuffles the "Demo" heading text above.
http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/
*/
$("#demo-header").shuffleLetters();
@srobbin
srobbin / gist:1974010
Created March 4, 2012 17:30
Intelligist: Init Demo
/*
Using Intelligist is easy.
Just select the container, and pass in an object of gists that you'd like to display.
The object is made of keys (the gist ID) and values (titles for the drop-down menu).
Note: In this example, we are setting the "exec" option to true.
This instructs Intelligist to execute the code after the gist is displayed.
It is optional, and disabled by default.
Important: If you are using the "exec" option, your Gist must be set
@srobbin
srobbin / gist:1973984
Created March 4, 2012 17:24
Intelligist Demo: Initial CSS
/*
Gists are snippets of shareable code.
GitHub allows gists to be embedded into your website
For example, here's a bit of CSS for a background gradient.
It's being applied to the page that you're looking at.
*/
body {
background: #efefef; /* Old browsers */