-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Not working on firefox #254
Comments
*It works with inline styles ONLY. This video explains how to get css animations working correctly with this polyfill in firefox: https://www.youtube.com/watch?v=UmzFk68Bwdk. Still not sure why the demos don't work. Also for anyone else out there you need to type animation-timeline: scroll(block root);. The block root does something, not sure though. |
Doesnt work in firefox with inline styles AND breaks @font-face for some reason
|
Yes.
This used to be the case but no longer is since early February, when #242 to merged.
Testing https://flackr.github.io/scroll-timeline/demo/view-timeline/ in Firefox tells me the polyfill works fine. The culprit seems to be that |
Oke, is it possible to use Polyfill only on one specific .css file? |
See #248 for that. |
Okay, I think there must of been a problem with how I installed the git locally. When I go to the page on the github it seems to work, just not locally. Cheers. |
Are you using Firefox Nightly by any chance? They have a half-working implementation enabled in Nightly, so the polyfill doesn’t kick in there as Firefox claims support. Be sure to test in Firefox Stable. When testing locally, be sure to build the project first. |
Just to confirm at this point all I have to do is just add the script to the head of my document, nothing else? |
Doesn't work for me as well. |
That is a problem caused by using Next.js. See #240 for that. |
Okay, I made sure I'm using base firefox. I have just added the following to the top of the head of my html, still can't get it to work. Do I need to change my CSS or something? Is there something else I need to do? I have only been able to get it to work by putting the styles inline on my html page. |
At this point, sharing tour CSS and/or a repro is necessary to debug this.
Do you see any console errors? For example, external stylesheets can't be processed in case of CORS. |
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. |
*Just to add, I can confirm all of the demos work, just so long as their code is inline as well. Its strange, as the external css demo works when its hosted the github, but locally I can't get the demo to work (And yes I made sure to update the script src to the github instead of the local address). |
What do you mean by "locally"? Are you loading directly from a file rather than a webserver? For external CSS files the polyfill needs to be able to You will have to run your demo through a webserver, e.g.
I confirmed that it looks like it's working in firefox for me using the above to serve the website and load it from http://localhost:8000/navbar.html |
Okay, I tried running it on my WAMP server, and the code appears to work now. However, I'm still having trouble with it getting to work with certain features. If you go back to my github repo, I have updated the code so that it contains something that I cannot get to work. When you scroll down, the SVG in the html file is suppose to grow with respect to the scroll position. Again, it works perfectly on chrome but not on firefox. It actually appears to break the scroll animations entirely, with on refresh giving me different results. Thanks for your help so far. |
I just said screw it and decided to push my site to the public. I've now noticed that the console log is absolutely filled with errors regarding the script on firefox. Here is an example: " |
This is an insanely annoying bug to have to track down, I've wasted a lot of time for just pretty scrollbars. I also was getting the I also don't appreciate a 3rd party lib deciding to fetch a js file from a GitHub hosted resource... even when bundled for production. I've decided to fork ngx-scrollbar and ditch the polyfill code. |
Just found out about the |
Nope, that still breaks Firefox's font-face loading functionality for some reason. |
So after reading up, the CSS parser is mangling stuff and causing Firefox to break any font-face implementations? That is a pretty huge caveat, I guess it's back to native scrollbars and thinking about an alternative library. |
For me the polyfill its pretty much useless. Has too many limitations (Must use non-relative units, can't have font-face, etc). Would be nice if the readme of the git was updated so many afternoons weren't wasted trying to get it to work. Guess we'll have to wait till its implemented into all browsers. By the way, depending on what you're trying to do there's always GSAP (Which is annoying, because you have to include a whole library for a few features). |
@jpike88 In v14.1.1 the polyfill is shipped with |
I've tried even running the demos provided in firefox, but none of them seem to work. I just want to use the CSS rule animation-timeline: scroll();, not any JS stuff.
The instructions dont seem to really explain how to install the polyfill either. Do I just have to add the script tag to my html head?
The text was updated successfully, but these errors were encountered: