Answer the question
In order to leave comments, you need to log in
Find out if the scroll has scrolled to the element with id (js)?
Where is the mistake
let animate = document.querySelector('.skills');
document.querySelector('body').addEventListener('scroll', function(){
if( animate.getBoundingClientRect().top <= 700){
console.log("hello");}
})
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