Scrollout js
<script src="https://unpkg.com/scroll-out/dist/scroll-out.min.js"></script>
<script>ScrollOut();</script>
Scrollout js
<script src="https://unpkg.com/scroll-out/dist/scroll-out.min.js"></script>
<script>ScrollOut();</script>
scrollout js angular
//Install via npm
$ npm i scroll-out -S
//in your component.ts
import ScrollOut from 'scroll-out';
@Component(/**/)
export class MyComponent implements AfterContentInit, OnDestroy {
so: any;
constructor(private el: ElementRef) {}
ngAfterContentInit() {
this.so = ScrollOut({
scope: this.el.nativeElement
});
}
ngOnDestroy() {
this.so.teardown();
}
}
//In your component.css
[data-scroll] {
transition: opacity 1s;
}
[data-scroll="in"] {
opacity: 1;
}
[data-scroll="out"] {
opacity: 0;
}
//In your component.html
<div data-scroll>Watch me fading in!</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us