0.2.0 • Published 7 years ago

ionic-parallax v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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;
  }
}