Skip to content

u4bi-dev/ng-cover-flow

Repository files navigation

ng-cover-flow

Alt text

Install

Setup

import the CoverFlowModule module.

import { CoverFlowModule } from 'ng-cover-flow';
...

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    CoverFlowModule,
    ...
  ],
  providers: [],
  bootstrap: [AppComponent]
})

export class AppModule {
}

Add the cover-flow attribute element.

@Component({
  selector: 'sample',
  template:`
  <div cover-flow>
    <div></div>
    <div></div>
    ...
  </div>
  `
})
class Sample {}

That's it!

API REFERENCE

Name Type Description Default
cover-flow-disabled @Input all coverflow scrolling events is disabled. false

Todo

  • auto move scrolling
  • responsive sizing

License

MIT