+ 2

How to add scroll event in code playground?

https://code.sololearn.com/W6Sx7RrUvBnH/#html Edited: Hm... Origin code don't work in Firefox and in mobile app. But in Chrome it's ok. Why this don't work in Firefox?

10th Mar 2018, 5:56 AM
Bogdan Saliuk
Bogdan Saliuk - avatar
2 ответов
+ 5
The bare minimum that gets this working is: 13: width: 100%; // of the containing element, from 100vw (of the view) 14: height: 100%; // ... from 100vh 134: window.onscroll=scroll; // addEventListener hasn't always worked for me I'm not saying this is right, only that it works for me.
9th Mar 2018, 10:49 PM
Kirk Schafer
Kirk Schafer - avatar
0
by using <marquee> </marquee> tags
23rd Mar 2018, 5:25 PM
B.Swetha
B.Swetha - avatar