Socket
Socket
Sign inDemoInstall

@boatzako/ngx-parallax-scroll

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @boatzako/ngx-parallax-scroll

[![License](https://badgen.net/npm/license/@boatzako/ngx-parallax-scroll)](https://badgen.net/npm/license/@boatzako/ngx-parallax-scroll) [![Minified](https://badgen.net/bundlephobia/min/@boatzako/ngx-parallax-scroll)](https://badgen.net/bundlephobia/min/@


Version published
Maintainers
1
Install size
94.1 kB
Created

Readme

Source

NgxParallaxScroll

License Minified

Parallax scroll for Angular9+. Demo

Getting Started

You can install @boatzako/ngx-parallax-scroll by using npm.

npm install @boatzako/ngx-parallax-scroll --save

Usage

Import ngx-parallax-scroll module

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import { NgxParallaxScrollModule } from '@boatzako/ngx-parallax-scroll'; // <-- add

@NgModule({
  imports: [
    BrowserModule, 
    NgxParallaxScrollModule  // <-- add
  ],
  declarations: [ 
    AppComponent,
  ],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

Then in HTML

<ngx-parallax-scroll>
  <img parallax-img src="/assets/your-image.jpg" alt="">
</ngx-parallax-scroll>

API.

Component

Selector: ngx-parallax-scroll

Inputs
InputTypeDefaultRequiredDescription
styleClassstringnoStyle class of the component.

Directive

Selector: parallax-img

Inputs
InputTypeDefaultRequiredDescription
rationumber1nospeed when scrolling

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

FAQs

Last updated on 29 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc