Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

pilotcreative/throttled

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

throttled

Throttled scroll and resize event via requestAnimationFrame.

Based on this article

Installation

Install with component(1):

$ component install pilotcreative/throttled

Usage

var throttled = require('throttled');

throttled.on('scroll', function(){
  console.log('clean scroll');
});

throttled.on('resize', function(){
  console.log('clean resize');
});

throttled.on('wheel', function(){
  console.log('clean wheel');
});

License

MIT

About

Throttled scroll and resize event via requestAnimationFrame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.0%
  • HTML 40.7%
  • Makefile 7.3%