Undefined

I don't know how to name my blog, just undefined.

#javascript

“2013: Haskell people are still writing monad tutorials, JavaScript people are still trying to explain inheritance.”

Vyacheslav Egorov

Horwheel Component

Horwheel Component makes it easy to implement horizontal scrolling with a user’s mouse wheel. It’s cross-browser compatible:

  • Chrome (OS X, Windows)
  • Firefox (OS X, Windows)
  • Opera (OS X, Windows)
  • Safari (OS X, Windows)
  • IE9
  • IE8
  • IE7

View Demo

View on Github

Installation

$ component install pazguille/horwheel

See: https://github.com/component/component

How-to

First, require horwheel:

var horwheel = require('horwheel');

Then, define your wrapper:

var wrapper = document.querySelector('#wrapper');

Finally, execute horwheel function with wrapper parameter:

horwheel(wrapper);

Standalone

Also, you can use it without components. First, add standalone file:

<script src="../standalone/horwheel.js" type="text/javascript"></script>

Then, define your wrapper:

var wrapper = document.querySelector('#wrapper');

Finally, execute horwheel function with wrapper parameter:

horwheel(wrapper);

“Be Native.
Browser makers spend countless hours building native support for a lot of things in order to improve both user’s experience and developer’s life. Use these native features.”

– by Hugo Giraudel

“JavaScript doesn’t suck, you’re just doing it wrong.”

– by Douglas Crockford