Pages UI
Search…
Parallax

Importing

First import it to your app module or any submodule as you wish
1
import { SharedModule } from './@pages/components/shared.module';
2
@NgModule({
3
imports: [SharedModule,...]
4
})
5
export class AppModule(){}
Copied!

Usage

Place "pg-parallax" in any div you want to get the parallax effect
HTML
1
<div class="inner" pg-parallax>
2
</div>
Copied!
Copy link