All Projects → AnthonyNahas → ngx-animated-gradient

AnthonyNahas / ngx-animated-gradient

Licence: MIT License
Angular Directive that animates the gradient background

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to ngx-animated-gradient

Xamarin.forms.backgroundkit
🔨 A powerful Kit for customizing the background of Xamarin.Forms views
Stars: ✭ 167 (+943.75%)
Mutual labels:  background, gradient
Gradientbutton
A Button that supports gradient ramp for background, the Angle of the circular, shadow. You can also customize it use hardcode.(支持渐变色背景、带阴影、可设置圆角的按钮)
Stars: ✭ 19 (+18.75%)
Mutual labels:  background, gradient
Hero Generator
🦸🏻‍♀️Hero Generator! Create a nice hero image for your site or app
Stars: ✭ 549 (+3331.25%)
Mutual labels:  background, gradient
Webgradients
A curated collection of splendid gradients made in CSS3, .sketch and .PSD formats.
Stars: ✭ 2,197 (+13631.25%)
Mutual labels:  background, gradient
ng-mono-repo-starter
Angular Mono Repo Starter
Stars: ✭ 79 (+393.75%)
Mutual labels:  ngx
GradientProgress
A gradient progress bar (UIProgressView).
Stars: ✭ 38 (+137.5%)
Mutual labels:  gradient
SwiftUI-Color-Kit
SwiftUI Color Pickers, Gradient Pickers And All The Utilities Needed To Make Your Own!
Stars: ✭ 120 (+650%)
Mutual labels:  gradient
SKTextureGradient
A SpriteKit SKTexture Gradient
Stars: ✭ 27 (+68.75%)
Mutual labels:  gradient
bg-sound
Web Component to emulate the old-school <bgsound> HTML element
Stars: ✭ 93 (+481.25%)
Mutual labels:  background
GradientBorderedLabelView
IBDesignable label with customizable gradient attributes
Stars: ✭ 70 (+337.5%)
Mutual labels:  gradient
mixed-precision-pytorch
Training with FP16 weights in PyTorch
Stars: ✭ 72 (+350%)
Mutual labels:  gradient
Gradientable
Gradiention Protocol in iOS
Stars: ✭ 26 (+62.5%)
Mutual labels:  gradient
cordova-plugin-apkupdater
This plugin allows your Android app to download and install compressed updates without the Google Play Store.
Stars: ✭ 46 (+187.5%)
Mutual labels:  background
ng-elm
Write Angular components in Elm.
Stars: ✭ 41 (+156.25%)
Mutual labels:  ngx
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (+75%)
Mutual labels:  background
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (+156.25%)
Mutual labels:  gradient
ckLine
Generate random Background Lines it's great for Backgrounds
Stars: ✭ 20 (+25%)
Mutual labels:  background
ngext
Better routing for Angular
Stars: ✭ 78 (+387.5%)
Mutual labels:  ngx
autodiff
A .NET library that provides fast, accurate and automatic differentiation (computes derivative / gradient) of mathematical functions.
Stars: ✭ 69 (+331.25%)
Mutual labels:  gradient
ngx-modal
Dynamic modal dialog for Angular
Stars: ✭ 54 (+237.5%)
Mutual labels:  ngx

ngx-animated-gradient - Angular Directivated that animated the gardient background

npm version, npm Join the chat at (https://gitter.im/angular-material-extensions/Lobby Build Status dependency Status devDependency Status Greenkeeper Badge license

ngx-animated-gradien demonstration

ngx-animated-gradien demonstration

ngx-animated-gradien demonstration

ngx-animated-gradien demonstration

ngx-animated-gradien demonstration

Demo

View all the directives in action at https://AnthonyNahas.github.io/ngx-animated-gradient

Dependencies

  • Angular (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

ng add ngx-animated-gradient

2. Install via npm. (Alternative)

Now install ngx-animated-gradient via:

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:

map: {
  'ngx-animated-gradient': 'node_modules/ngx-animated-gradient/bundles/ngx-animated-gradient.umd.js',
}

Once installed you need to import the main module:

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()):

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:

import { NgxAnimatedGradientModule } from 'ngx-animated-gradient';

@NgModule({
  declarations: [OtherComponent, ...],
  imports: [NgxAnimatedGradientModule, ...], 
})
export class OtherModule {
}

Usage

<div ngxAnimatedGradient></div>

another full example

<div class="card">
      <div class="card-header">
        ngx-animated-gradient
      </div>
      <div class="card-body" ngxAnimatedGradient style="height: 400px">
      </div>
    </div>
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 codepen

Other Angular Libraries

Support

Built by and for developers ❤️ we will help you 👊


jetbrains logo

This project is supported by jetbrains with 1 ALL PRODUCTS PACK OS LICENSE incl. webstorm

License

Copyright (c) 2019 Anthony Nahas. Licensed under the MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].