Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonynahas/ngx-animated-gradient
Angular Directive that animates the gradient background
https://github.com/anthonynahas/ngx-animated-gradient
angular animation background gradient library ngx
Last synced: 3 months ago
JSON representation
Angular Directive that animates the gradient background
- Host: GitHub
- URL: https://github.com/anthonynahas/ngx-animated-gradient
- Owner: AnthonyNahas
- License: mit
- Created: 2019-03-16T11:12:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T21:37:37.000Z (over 2 years ago)
- Last Synced: 2024-05-22T23:24:45.944Z (8 months ago)
- Topics: angular, animation, background, gradient, library, ngx
- Language: JavaScript
- Homepage: https://anthonynahas.github.io/ngx-animated-gradient
- Size: 19.7 MB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx-animated-gradient - Angular Directivated that animated the gardient background
[![npm version](https://badge.fury.io/js/ngx-animated-gradient.svg)](https://badge.fury.io/js/ngx-animated-gradient),
[![npm](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://AnthonyNahas.github.io/ngx-animated-gradient)
[![Join the chat at (https://gitter.im/angular-material-extensions/Lobby](https://badges.gitter.im/ngx-auth-firebaseui/Lobby.svg)](https://gitter.im/angular-material-extensions/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/AnthonyNahas/ngx-animated-gradient.svg?branch=master)](https://travis-ci.org/AnthonyNahas/ngx-animated-gradient)
[![dependency Status](https://david-dm.org/AnthonyNahas/ngx-animated-gradient/status.svg)](https://david-dm.org/AnthonyNahas/ngx-animated-gradient)
[![devDependency Status](https://david-dm.org/AnthonyNahas/ngx-animated-gradient/dev-status.svg?branch=master)](https://david-dm.org/AnthonyNahas/ngx-animated-gradient#info=devDependencies)
[![Greenkeeper Badge](https://badges.greenkeeper.io/AnthonyNahas/ngx-animated-gradient.svg)](https://greenkeeper.io/)
[![license](https://img.shields.io/github/license/AnthonyNahas/ngx-animated-gradient.svg?style=flat-square)](https://github.com/AnthonyNahas/ngx-animated-gradient/blob/master/LICENSE)
## Demo
View all the directives in action at https://AnthonyNahas.github.io/ngx-animated-gradient
## Dependencies
* [Angular](https://angular.io) (*requires* Angular 2 or higher, tested with 2.0.0)## Installation
## 1. Install via *ng add*. (Recommended)
Now add the library via the `angular schematics`
```shell
ng add ngx-animated-gradient
```
## 2. Install via *npm*. (Alternative)Now install `ngx-animated-gradient` via:
```shell
npm install --save ngx-animated-gradient
```---
##### SystemJS
>**Note**:If you are using `SystemJS`, you should adjust your configuration to point to the UMD bundle.
In your systemjs config file, `map` needs to tell the System loader where to look for `ngx-animated-gradient`:
```js
map: {
'ngx-animated-gradient': 'node_modules/ngx-animated-gradient/bundles/ngx-animated-gradient.umd.js',
}
```
---Once installed you need to import the main module:
```js
import { NgxAnimatedGradientModule } from 'ngx-animated-gradient';
```
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice ` NgxAnimatedGradientModule .forRoot()`):
```js
import { NgxAnimatedGradientModule } from 'ngx-animated-gradient';@NgModule({
declarations: [AppComponent, ...],
imports: [NgxAnimatedGradientModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
```Other modules in your application can simply import ` NgxAnimatedGradientModule `:
```js
import { NgxAnimatedGradientModule } from 'ngx-animated-gradient';@NgModule({
declarations: [OtherComponent, ...],
imports: [NgxAnimatedGradientModule, ...],
})
export class OtherModule {
}
```## Usage
```html
```another full example
```html
ngx-animated-gradient
```| option | bind | type | default | description |
|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|
| colors | Input() | RGBValue | (see the code ;)) | colors to render
| tickSpeed | Input() | number| 16 | The tick speed for calling the update of the gradient
| colorIndices | Input() | number[] | [0, 1, 2, 3] | The color indices, these indicate where in the color table to load from
| gradientSpeed | Input() | number | 0.002 | The multiplier for the gradient speed## Contributors
- @tanepiper
## Credit
This library is an angular directive/version of [this](https://codepen.io/quasimondo/pen/lDdrF) codepen
## Other Angular Libraries
- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)
- [@firebaseui/ng-bootstrap](https://github.com/firebaseui/ng-bootstrap)
- [ngx-linkifyjs](https://github.com/AnthonyNahas/ngx-linkifyjs)
- [@angular-material-extensions/password-strength](https://github.com/angular-material-extensions/password-strength)
- [@angular-material-extensions/link-preview](https://github.com/angular-material-extensions/link-preview)
- [@angular-material-extensions/pages](https://github.com/angular-material-extensions/pages)
- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)
- [@angular-material-extensions/faq](https://github.com/angular-material-extensions/faq)
- [@angular-material-extensions/jumbotron](https://github.com/angular-material-extensions/jumbotron)
- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)
- [@angular-material-extensions/combination-generator](https://github.com/angular-material-extensions/combination-generator)## Support
+ Drop an email to: [Anthony Nahas](mailto:[email protected])
+ or open an appropriate [issue](https://github.com/AnthonyNahas/ngx-auth-firebaseui/issues)
+ let us chat on [Gitter](https://gitter.im/ngx-auth-firebaseui/Lobby)
Built by and for developers :heart: we will help you :punch:---
![jetbrains logo](assets/jetbrains-variant-4_logos/jetbrains-variant-4.png)
This project is supported by [jetbrains](https://www.jetbrains.com/) with 1 ALL PRODUCTS PACK OS LICENSE incl. [webstorm](https://www.jetbrains.com/webstorm)
## License
Copyright (c) 2019 Anthony Nahas. Licensed under the MIT License (MIT)