这是indexloc提供的服务,不要输入任何密码
Skip to content

lgsunnyvale/horwheel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Horwheel

Scroll horizontally with mouse wheel.

It's cross-browser compatible:

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

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"></script>

Then, define your wrapper:

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

Finally, execute horwheel function with wrapper parameter:

horwheel(wrapper);

Contact

License

### The MIT License Copyright (c) 2013 @pazguille

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Scroll horizontally with mouse wheel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published