You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-minimalist-parallax

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-minimalist-parallax

If you need more subtlety or just want to get out of the old background-attachment: fixed, get to know the angular-minimalist-parallax

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

angular-minimalist-parallax

If you need more subtlety or just want to get out of the old background-attachment: fixed, get to know the angular-minimalist-parallax

Installation

  • Use npm to install the component
npm i angular-minimalist-parallax --save
  • Add the angular-minimalist-parallax component to your app.

Include the following on your src/app/app.module.ts.

import { MinimalistParallaxModule } from 'angular-minimalist-parallax';

@NgModule({
  declarations: [
    MyApp,
    ...
  ],
  imports: [
    IonicModule.forRoot(MyApp),
    MinimalistParallaxModule
  ],
  ...
})

Usage

add the parallax attribute to the <ion-content> in your template:

<ion-content parallax>
 <div class="over">
  <div class="bg"  [ngStyle]="{'background-image': 'linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 100%), url('+image+')'}">
    <!-- <div class="child">
      <h2>{{ text optional }}</h2>  
    </div> -->
  </div>
 </div>
</ion-content>


Demo

Animated

Donate

Help us develop and improve our plugins -->

Keywords

ionic2

FAQs

Package last updated on 02 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts