1.0.7 • Published 6 years ago

hd-slider-lib v1.0.7

Weekly downloads
27
License
-
Repository
github
Last release
6 years ago

ApparenceHdSlider

This project was generated with Angular CLI version 6.0.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. The aim is to load low resolution images first to let your pages load faster. How it works : 1 : Load low resolution images 2 : Then it loads high resolution images on the background one after another 3 : When an images has his high res image loaded, the src is updated to show the high res image

Install

npm i --save hd-slider-lib

Use the HdSlider

Just import the HdSliderModule in your application and BrowserAnimationModule like this :

import {HdSliderLibModule} from 'hd-slider-lib';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule, // <-- import it
    HdSliderLibModule //<-- import it
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Now you can use the hd Slider

<enl-hd-slider-lib [items]="
                [
                  {
                      highSrc: '../assets/img1.jpg',
                      lowSrc: '../assets/apparence.png'
                  },
                  {
                      highSrc: '../assets/img2.jpg',
                      lowSrc: '../assets/apparence.png'
                  }
                ]" #AppSlider></enl-hd-slider-lib>

Build the lib

Run npm run package to build the library.

Made by http://apparence.io, french mobile development agency

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

0.0.1

6 years ago