Open nicroto opened 6 years ago
At the moment, I don’t have access to that device/browser combination. Can you provide more details about what is not working?
Basically nothing shows up from the revealed page content. Scroll is there, but no visible content.
Well, the hidden content is intentional. It’s a part of a strategy to prevent elements flickering on page load (see the docs on User Experience), but it sounds as though the reveal animations are not being triggered 🤔
Unfortunately, I don’t have iOS 10 installed on any available devices, or access to an emulator.
Yeah, Apple does not make that very easy, unfortunately.
Are you able and willing to connect your phone via USB to a mac and use the Safari debugger to look for error messages?
No errors. No warnings.
Thank you @nicroto, I appreciate this remote debugging session!
The page has been initialized correctly, and all the elements have animation styles applied. That means almost everything has gone right. What is more, it looks like some of the elements have revealed—I see opacity: 1
on a few.
Can you do me a favor?
window.pageYOffset
in the consoledocument.documentElement.scrollTop
in the consoleWhat values are output?
I hope this is helpful:
> window.pageYOffset
< 673
> document.documentElement.scrollTop
< 0
Thank Nikolay, that looks correct for Safari. The issue must be somewhere else. It seems as though I have no choice but to come back to this issue when I have access to iOS 10.
I have the same problem with my iPad: a black screen. What about the mobile parameter ? Is it set to false or true ?
It doesn’t seem to the be configuration. It works fine on iOS 11 Safari.
My guess is that there's something about isElementVisible()
not working as intended (which is what I sought to test in the posts above), or that the [delegate()
]() isn’t properly being called on scroll
events.
In fact, the latter could be tested with:
ScrollReveal().delegate()
into the consoleDo elements reveal?
You need an Apple computer and an iPad 4 to test (web inspector with a js console). Sorry, I have only an iPad.
Hi, I've tested it with iOS9 and scrollrevealjs.org doesn't work. However, it does work on my site. The problem is "load-hidden". It works when you don't use it. I guess it doesn't override the CSS properly. It does work fine on iOS11+
I believe the script overrides the CSS with "visibility: visible". I would try: "visibility: visible !important"
You can test it on Browserstack.com with a free trial.
Thank you @dijkermans!
I really appreciate your insight; this issue has bugged me because I don't have access to those older versions of Safari... but your diagnosis makes a lot of sense!
Probably a related issue, but after testing the demo website using BrowserStack, I can confirm it doesn't work under Safari 10.1 (included, and older versions). This Safari version is still widely used on older Macs.
Can confirm the library does work in these browsers, it's just the CSS I’ve used for the site's color bar demo that does not play nicely in Safari 10.
Specifically, it's the .demo__bar__wrapper
that renders with height: 0
for yet undetermined reasons.
Environment