ng-animate
4 | 5 |Available Animations
7 |Advanced Usage
28 |You can use parameters to modify the animations:
29 | 30 |44 | 47 |
48 | 61 |
62 | 68 |
├── src ├── assets │ ├── .gitkeep │ └── normalize.css ├── favicon.ico ├── styles.css ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── app │ ├── example-box │ │ ├── example-box.component.css │ │ ├── example-box.component.html │ │ ├── example-box.component.spec.ts │ │ └── example-box.component.ts │ ├── app-routing.module.ts │ ├── app.module.ts │ ├── app.component.spec.ts │ ├── app.component.css │ ├── app.component.html │ └── app.component.ts ├── main.ts ├── test.ts ├── polyfills.ts └── index.html ├── projects └── ng-animate │ ├── src │ ├── lib │ │ ├── utils.ts │ │ ├── lightspeed.ts │ │ ├── rotate.ts │ │ ├── specials.ts │ │ ├── flippers.ts │ │ ├── back.ts │ │ ├── zooming.ts │ │ ├── bouncing.ts │ │ ├── fading.ts │ │ └── attention-seekers.ts │ ├── public-api.ts │ └── test.ts │ ├── ng-package.json │ ├── tsconfig.lib.prod.json │ ├── tsconfig.lib.json │ ├── tsconfig.spec.json │ ├── package.json │ ├── .eslintrc.json │ ├── README.md │ └── karma.conf.js ├── e2e ├── src │ ├── app.po.ts │ └── app.e2e-spec.ts ├── tsconfig.json └── protractor.conf.js ├── .editorconfig ├── tsconfig.app.json ├── tsconfig.spec.json ├── .browserslistrc ├── .gitignore ├── tsconfig.json ├── .eslintrc.json ├── LICENSE.md ├── karma.conf.js ├── package.json ├── angular.json └── README.md /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /projects/ng-animate/src/lib/utils.ts: -------------------------------------------------------------------------------- 1 | export const DEFAULT_TIMING = 1; 2 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiayihu/ng-animate/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /projects/ng-animate/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../dist/ng-animate", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/app/example-box/example-box.component.css: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | } 4 | 5 | .box { 6 | background-color: #fff; 7 | border-radius: 3px; 8 | height: 48px; 9 | width: 48px; 10 | margin: 0 auto; 11 | margin-top: 5rem; 12 | } 13 | -------------------------------------------------------------------------------- /src/app/example-box/example-box.component.html: -------------------------------------------------------------------------------- 1 |
2 |4 | 6 |
7 | -------------------------------------------------------------------------------- /src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | const routes: Routes = []; 5 | 6 | @NgModule({ 7 | imports: [RouterModule.forRoot(routes)], 8 | exports: [RouterModule] 9 | }) 10 | export class AppRoutingModule { } 11 | -------------------------------------------------------------------------------- /projects/ng-animate/tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.lib.json", 4 | "compilerOptions": { 5 | "declarationMap": false 6 | }, 7 | "angularCompilerOptions": { 8 | "compilationMode": "partial" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | async navigateTo(): PromiseYou can use parameters to modify the animations:
29 | 30 |