6
Is it possible for me to identify a specific part of the screen with Jquery’s javascript? For example when going through height y it perform a function for me? I imagine something like:
var minha_altura = $(window).height();
var altura = 400;
if(minha_altura > 400)
{
//faz algo
}
The concept is correct and in fact it works?
thanks so much for the feedback, I could do this with the scroll of the page too?
– Marcos Henrique
@Marcoshenrique Claso that yes, in this way is possible.
window.addEventListener('scroll', function() {
console.log(window.scrollY);
});
– Lucas Fontes Gaspareto
I appreciate the help, it was of great value
– Marcos Henrique