1.0.6 • Published 6 months ago

ngx-transition-content v1.0.6

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

NgxTransitionContent (changelog)

npm

Transition content: Fade out, transition dimensions, fade in.

It was built for dialog content where the dialog width stays the same for every page of content. Read the caveats before using it.

Transition

Fade out old content -> transition dimensions to fit the new content -> fade in new content

Demo

https://user-images.githubusercontent.com/16866223/158490182-56702fef-d034-44f3-a71b-e5ad5bef87d7.mov

Usage:

<!--
  Update slot to the correct index to start the transition.
  Optional attributes:
    [durationFade]="300"
    [durationHeight]="300"
-->
<ngx-transition-content [slot]="0">
  <ng-template ngx-transition-content-page>
    <p>Content1</p>
    <p>Content1</p>
    <p>Content1</p>
  </ng-template>
  <ng-template ngx-transition-content-page>
    <p>Content2</p>
    <p>Content2</p>
    <p>Content2</p>
    <p>Content2</p>
    <p>Content2</p>
  </ng-template>
</ngx-transition-content>
1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago