Last active
February 1, 2018 22:38
-
-
Save BrockReece/826647d352f5050c48225391ad1c587f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const observer = new IntersectionObserver((entries) => { | |
entries.forEach(entry => { | |
if (entry.intersectionRatio > 0) { | |
observer.disconnect() | |
this.showComments = true | |
} | |
}) | |
}, this.options) | |
observer.observe(this.$refs.ending) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment