1.1.6 • Published 6 years ago

animated-slider v1.1.6

Weekly downloads
17
License
MIT
Repository
github
Last release
6 years ago

animate-slider

This is a powerfull responsive Angular7 slider with animation added

Demo

Slider text font will be change with your project font

Checkout the Demo...Click Here

Installation

To add the slider to your Angular project:

npm install animated-slider

Once installed, add the slider to your app.module.ts:

import { AnimateSliderModule } from "animated-slider";
 
...
 
@NgModule({
   
   imports: [

     AnimateSliderModule ,
    ...
   ]

})
export class AppModule {}

Sample usage

@Component({...})
export class AppComponent {
  slides= [
    { 
      slideUrl: 'your image url',
      slideAnimation:"fade",
      text: "Your Text",
      textAnimation : "slideFromLeft",
      buttonText :"Your button text",
      buttonLink: "button link",
      buttonAnimation: "slideFormRight"
    },
    ...
    ...
}

Don't chnage the object property name in the array**

  1. slideAnimation is used for Slide animation
  2. textAnimation is used for Caption Text animation
  3. buttonAnimation is used for Button animation
  4. text is used for Caption Text
  5. slideUrl is used for Image
  6. buttonText is used for Button Text
  7. buttonLink is used for Button Link

if you don't want the animation/anything just remove the property form the object.

if you set button and text to false please remove all button or text property from your slide array for better performance.

And in template file app.component.html:

<animate-slider
    [button]= "true"
    [captionText] = "true"
    [slide] = "images"
    [autoPlay] = "false"
    [speed] = "1000"
    [height] = "40"
    [textColor] = "'red'"
    >
</animate-slider>

Boom!!
That's All you have to do

Documentation

*all important directives

DirectivevalueFunction
buttonFilltrue/falseshow & hide Button
buttonOutlinetrue/falseshow & hide Button
captionTexttrue/falseshow & hide Caption text
slideArray of your slide (Mandatory)For each slider
autoPlaytrue/false (optional)Auto rotate slide
speednumber (optional) /(Mandatory) if autoPlay is trueSpeed
heightnumber (Mandatory)Slide height
textColorstring color-code (optional)change text color
buttontextColorstring color-code (optional)change button text color
buttonBorderColorstring color-code (optional)change button border color
buttonBackgroundstring color-code (optional)change fill button background color

without textColor, buttontextColor, buttonBorderColor text,button will be filled with default white color.

height is calculated as vh. don't put value as px

Available Animation

slideFromRight
slideFromRightFast
slideFromLeft
slideFromLeftFast
slideFromTop
slideFromBottom
rotate
fade zoomIn

(*More animation will be implemented soon)

Important Note

You can add only external-link to the button, don't use Router Link.

1.1.6

6 years ago

1.1.5

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

0.0.1

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago