I realized that those styles, where JavaScript controls the values depending on scroll, aren't work. for an example:
var elem
window.onscroll = function (elem){
(function change(){
elem.style.opacity =
((elem.offsetTop+elem.offsetHeight)-
window.pageYOffset)/window.innerHeight
})
}
Why that's happening? Are there any collection of recommendations for mobile phone web-development?