tweak options for footer observer
This commit is contained in:
parent
b992ade762
commit
395a6d6c78
|
@ -142,8 +142,8 @@ export class AppComponent {
|
||||||
createObservers() {
|
createObservers() {
|
||||||
let options = {
|
let options = {
|
||||||
root: null,
|
root: null,
|
||||||
rootMargin: '300px',
|
rootMargin: '0px',
|
||||||
threshold: 1.0
|
threshold: 0.1
|
||||||
};
|
};
|
||||||
let intersectionObserver = new IntersectionObserver(entries => {
|
let intersectionObserver = new IntersectionObserver(entries => {
|
||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
|
|
Loading…
Reference in New Issue