Uos Versions Save

🐭 A tiny 250b scroll listener with progress.

v1.1.0

5 years ago

This release includes optimizations based on library size and the addition of observer removal.

const instance = uos(0, 1, p => {
  // Call itself to remove it
  if (p === 1) instance();

  // Optionally add true to remove the scroll listener too
  if (p === 1) instance(true);
});

Made possible by @lukeed, thanks! 🙌

v1.0.0

5 years ago

The first public release of uos!

Features:

  • Small in size, no dependencies
  • Percentage or pixel based values
  • Optimized for multiple instances