npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ritox/scroll-manager

v1.0.4

Published

A powerful and flexible Angular library for managing scroll behavior in your applications. RTX Scroll Manager provides an intuitive way to handle scroll operations with customizable options and smooth animations.

Readme

ritox Scroll Manager

A powerful and flexible Angular library for managing scroll behavior in your applications. RTX Scroll Manager provides an intuitive way to handle scroll operations with customizable options and smooth animations.

Features

  • 🎯 Precise Control: Fine-tune scroll behavior with customizable options
  • 🎨 Smooth Animations: Built-in support for smooth scrolling
  • 🔄 Two-way Binding: Seamless integration with Angular's form controls
  • 📱 Responsive: Works across all modern browsers and devices
  • 🛠 TypeScript Support: Full type safety and autocompletion
  • 📚 Well Documented: Comprehensive documentation and examples

Installation

npm install @ritox/scroll-manager

Quick Start

  1. Import the module in your app.module.ts:
import { rtxScrollManagerImports } from '@ritox/scroll-manager';

@NgModule({
  imports: [
    ...rtxScrollManagerImports
  ]
})
export class AppModule { }
  1. Use the directive in your template:
<div [rtxScrollManager]="scrollOptions">
  <div [rtxScrollSection]="'section1'">
    <!-- Your content here -->
  </div>
  <div [rtxScrollSection]="'section2'">
    <!-- More content -->
  </div>
</div>
  1. Configure scroll options in your component:
import { Component, signal } from '@angular/core';
import { ScrollIntoViewOptions } from 'rtx-scroll-manager';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {
  scrollOptions = signal<ScrollIntoViewOptions>({
    behavior: 'smooth',
    block: 'start',
    inline: 'nearest'
  });
}

Scroll Options

The library supports all standard ScrollIntoViewOptions:

  • behavior: 'auto' | 'smooth' | 'instant'
  • block: 'start' | 'center' | 'end' | 'nearest'
  • inline: 'start' | 'center' | 'end' | 'nearest'

Advanced Usage

Dynamic Scroll Options

@Component({
  selector: 'app-root',
  template: `
    <div [rtxScrollManager]="scrollOptions()">
      <div class="controls">
        <select [(ngModel)]="behavior" (ngModelChange)="updateBehavior($event)">
          <option value="smooth">Smooth</option>
          <option value="auto">Auto</option>
          <option value="instant">Instant</option>
        </select>
      </div>
      <div [rtxScrollSection]="'section1'">
        <!-- Content -->
      </div>
    </div>
  `
})
export class AppComponent {
  scrollOptions = signal<ScrollIntoViewOptions>({
    behavior: 'smooth',
    block: 'start',
    inline: 'nearest'
  });

  updateBehavior(behavior: ScrollBehavior) {
    this.scrollOptions.update(options => ({
      ...options,
      behavior
    }));
  }
}

Navigation with Scroll Anchors

<div [rtxScrollManager]="scrollOptions()">
  <nav>
    <button [rtxScrollAnchor]="'section1'">Section 1</button>
    <button [rtxScrollAnchor]="'section2'">Section 2</button>
  </nav>
  
  <div [rtxScrollSection]="'section1'">
    <h2>Section 1</h2>
    <!-- Content -->
  </div>
  
  <div [rtxScrollSection]="'section2'">
    <h2>Section 2</h2>
    <!-- Content -->
  </div>
</div>

Benefits

  1. Simplified Scroll Management
  • No need to manually handle scroll events
  • Clean, declarative syntax
  • Automatic scroll position calculations
  1. Enhanced User Experience
  • Smooth animations out of the box
  • Consistent behavior across browsers
  • Accessible navigation patterns
  1. Developer Friendly
  • TypeScript support
  • Angular integration
  • Minimal configuration required
  1. Performance Optimized
  • Efficient scroll handling
  • Minimal DOM operations
  • Smooth animations

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - feel free to use this library in your projects.

Support

If you encounter any issues or have questions, please open an issue on GitHub.