0.1.7 • Published 4 months ago

ngx-many-sticky v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

DEMO: https://stackblitz.com/edit/stackblitz-starters-x1bkvy?file=src%2Fmain.html

Features

  • Directive for easily managing and handling multiple stickies the angular way

Dependencies

Latest version available for each version of Angular

ngx-many-stickyAngular
0.1.615.x
current>= 15.x

Install

npm install ngx-many-sticky --save

Custom CSS classes required for animation.

Setup

  • Module based
import { CommonModule } from "@angular/common";

import { NgxManyStickyModule, SrollHelper } from "ngx-many-sticky";

@NgModule({
  imports: [CommonModule, NgxManyStickyModule],
  bootstrap: [App],
  declarations: [App],
})
class MainModule {}

Use

<div><b>debug:</b> {{ sticky0["debug"] | json }}</div>
<div #stickySpacer0></div>
<!-- Place spacer element where you want -->
<div
  many-sticky
  class="w-100 card bg-white"
  [groupIndex]="0"
  [elementIndex]="0"
  [spacer]="stickySpacer0"
  [options]="{
            animation: false,
            animationSpeed: '0.1s',
        }"
  [debug]="true"
  #sticky0
>
  <div class="row" style="height: 150px">
    <div class="col-md-2">Spacer Group:0 Element: 0</div>
    <div class="col-md-10">I am 0,0</div>
  </div>
</div>

License

MIT


1.0.2

4 months ago

0.1.7

4 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago