0.0.13 • Published 2 years ago

@petime/animations v0.0.13

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Angular Animations

This library will enable you to animate components on scroll, hover, load and click events. It is still under development.

npm i @petime/animations
yarn add @petime/animations

Import the module

import { AnimationsModule } from "@petime/animations";

@NgModule({
  declarations: [],
  imports: [AnimationsModule],
  exports: [AnimationsModule],
})
export class SharedModule {}

Include stylesheet in angular.json

"styles": ["node_modules/@petime/animations/animations.scss"],

Add html attributes with examples

<section
  mtnAnimate="scroll"
  [size]="['Large', 'XLarge']"
  [animationType]="page.animation"
>
  <mat-icon
    svgIcon="mouse"
    mtnAnimate="hover"
    animationType="moveUp"
  ></mat-icon>
</section>
AttributeExampleDescription
mtnAnimatescrollOn what event the animation should execute
sizeLarge, XLargeThte screen size the animation should execute
animationTypemoveUpThe type of animation
0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago