I've got Scroll out plugin, which allows me to add .scroll class whenever i scroll onto the element. Let's say I want to use it on .stream element, to allow the animation I have to have in css
.stream{
opacity: 0;
}
.stream.scroll{
opacity: 1;
}
But this plugin only works in google chrome, that means if I use google chrome, everything works perfectly, but when I use smth else, it just doesn't show up, because like in the example, to allow the animation to work, I have to hide the main element and on scroll I will show it.
I just can't think of any simple explanation and I'm pretty sure there is one. I tried something like this, which is condition to work only on chrome, but it didn't work, everything was hidden for an unknown reason.:
.stream{
opacity: 1;
}
@supports (-webkit-appearance:none) and (not (overflow:-webkit-marquee)) and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) {
.stream{
opacity: 0!important;
}
}
.stream.scroll{
opacity: 1!important;
}
If you would help me out, I would be gratefull, thank you.