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

Scrollreveal with custom scrollbar like ng-perfect-scrollbar #71

Open
GitOfSander opened this issue Jun 19, 2018 · 1 comment
Open

Scrollreveal with custom scrollbar like ng-perfect-scrollbar #71

GitOfSander opened this issue Jun 19, 2018 · 1 comment

Comments

@GitOfSander
Copy link

GitOfSander commented Jun 19, 2018

Is it possible to reveal elements on scroll with a custom scrollbar? I have created a callback for when the visitor scrolls in the web page, but can't find a way to reveal the items. So far I know there is no helpful documentation about NgsRevealService (.reveal())

`constructor(revealConfig: NgsRevealConfig, private revealService: NgsRevealService, private elementRef: ElementRef) {

}

public onCustomScroll(event: any): void {
    var hElement: HTMLElement = this.elementRef.nativeElement;
    var allDivs = hElement.getElementsByClassName('scrollReveal');

    this.revealService.reveal(this.elementRef.nativeElement, this.revealConfig);
}`
@wailashraf71
Copy link

Same here

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