ionic-parallax
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

ionic-parallax

WIP, here's a quick usage example:

npm i --save ionic-parallax
import { ParallaxModule } from 'ionic-parallax';
 
@NgModule({
  imports: [
    ...
     ParallaxModule
  ]
}) 
<ion-content>
  <ion-card>
     <div parallax [ratio]=50></div>
  </ion-card>
</ion-content>
ion-card {
  position: relative;
   
  > img[parallax] {
    position: absolute;
    height: inherit;
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i ionic-parallax

Weekly Downloads

4

Version

0.2.0

License

MIT

Last publish

Collaborators

  • ihadeed