Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallax does not work #182

Open
Saulolxx opened this issue Nov 17, 2017 · 1 comment
Open

Parallax does not work #182

Saulolxx opened this issue Nov 17, 2017 · 1 comment

Comments

@Saulolxx
Copy link

I've imported everything into the app module as directed, but when I roll scrool, the console is notified and nothing happens!

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { PageIndexComponent } from './page-index/page-index.component';
import { ScrollSpyModule,  ScrollSpyParallaxModule } from 'ngx-scrollspy';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    ScrollSpyModule.forRoot(),
    ScrollSpyParallaxModule 
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

page-index.component.html

 <div [scrollSpyParallax] = "{
    property: 'backgroundPositionX',
    ratio: -.2
  }"   class="divimage dzsparallaxer--target w-100 g-bg-pos-bottom-center" style="height: 120%; background-image: url(assets/img-temp/1920x1080/img25.jpg);"></div>
@ORECHN
Copy link

ORECHN commented Mar 19, 2018

Did you solve this? Is ther any working example with parallex?
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants