I would like to know how to use pourcentage instead of pixels in that javascript code.
if (document.body.scrollTop > 1 || document.documentElement.scrollTop > 1)
I know this sounds really obvious but I don't know and can't find anything online about that. Thank you.