Skip to content

Instantly share code, notes, and snippets.

@maxw3st
maxw3st / index.coffeescript
Created July 24, 2012 20:10
Springy particle text A web page created at CodePen.io.
###
Text masked spring particles
Author: Kushagra Gour a.k.a. Chin Chang
###
# requestanimationframe polyfill
window.requestAnimFrame = (->
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
@maxw3st
maxw3st / index.coffeescript
Created July 24, 2012 19:26
A web page created at CodePen.io.
###
Text masked spring particles
Author: Kushagra Gour a.k.a. Chin Chang
###
# requestanimationframe polyfill
window.requestAnimFrame = (->
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
YUI.add('node-scroll-info', function (Y) {
/**
Provides the ScrollInfo Node plugin, which exposes convenient events and methods
related to scrolling.
@module node-scroll-info
**/
/**
@maxw3st
maxw3st / Fullpage.html
Created May 12, 2012 02:38
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pure CSS3 Slideshow Without Page Jump &middot; CodePen</title>
<style>
@maxw3st
maxw3st / dabblet.css
Created May 11, 2012 13:35 — forked from jklm313/dabblet.css
some uses for :hover Pseudo class and '~' selector
/* some uses for :hover Pseudo class and '~' selector */
/*/ 360deg Goggle view /*/
/* le wrapper */
.g {
width: 600px;
height: 400px;
margin: 50px auto;
@maxw3st
maxw3st / dabblet.css
Created April 22, 2012 10:34 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html { background: white; }
.scrollbox {
overflow: auto;
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}