An open API service indexing awesome lists of open source software.

https://github.com/raiper34/ngx-sticky-copy

Ngx Sticky is another approach how to make elements sticky.
https://github.com/raiper34/ngx-sticky-copy

angular directives sticky sticky-headers

Last synced: about 2 months ago
JSON representation

Ngx Sticky is another approach how to make elements sticky.

Awesome Lists containing this project

README

          

[![npm version](https://badge.fury.io/js/ngx-sticky-copy.svg)](https://badge.fury.io/js/ngx-sticky-copy)
[![CircleCi](https://circleci.com/gh/Raiper34/ngx-sticky-copy.svg?style=shield)](https://app.circleci.com/pipelines/github/Raiper34/ngx-sticky-copy)
![npm bundle size](https://img.shields.io/bundlephobia/min/ngx-sticky-copy)
![NPM](https://img.shields.io/npm/l/ngx-sticky-copy)
[![demo](https://badgen.net/badge/demo/online/orange)](https://ngx-sticky-copy.netlify.app/)
[![stackblitz](https://badgen.net/badge/stackblitz/online/orange)](https://stackblitz.com/edit/angular-ivy-4tqcmx)

# Ngx-sticky-copy
Ngx Sticky is another Angular approach how to make elements sticky. This library allows you to make sticky even tHead. It creates sticky copy and show/hide based on scroll position.

# Instalation

`npm install ngx-sticky-copy --save`

then add `NgxStickyCopyModule` into module imports
```typescript
import {NgxStickyCopyModule} from 'ngx-sticky-copy';

@NgModule({
// ...
imports: [
// ...
NgxStickyCopyModule,
// ...
],
// ...
})
```

# Usage
See [DEMO](https://ngx-sticky-copy.netlify.app/) app for usage.

# Directives
- *scSticky - for all elements except table head
- *scStickyThead - for table head element (tHead)