Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 443 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 443 Bytes

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