Answer the question
In order to leave comments, you need to log in
How can I get top offset in vue.js?
How can I get the actual top offset in vue.js?
window.addEventListener("scroll", this.handleScroll)
I listen, but I don’t understand where to get the offset from. handleScroll(event) {
console.log(event.target.offsetTop)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question