• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Angular / Overlay Scrollbar

Overlay Scrollbar

Usage

The first step is to import the CSS file into your app:

import 'overlayscrollbars/overlayscrollbars.css';

Note: If the path 'overlayscrollbars/overlayscrollbars.css' is not working use 'overlayscrollbars/styles/overlayscrollbars.css' as the import path for the CSS file.

import 'overlayscrollbars/overlayscrollbars.css';

import { OverlayscrollbarsModule } from 'overlayscrollbars-ngx';

@Component({
selector: 'app-layout',
styleUrls: ['./layout.component.scss'],
templateUrl: './layout.component.html',
standalone: true,
imports: [
OverlayscrollbarsModule,
],
})
export class LayoutComponent {}
<div class="main-container" [defer]="true" overlay-scrollbars>
<router-outlet />
</div>

Reference

Reference

Filed Under: Angular Tagged With: scroll

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved