I want to use the pace.js preloader for my webflow site (https://github.hubspot.com/pace/docs/welcome/). I read here in the forums that it should be possible - but I haven’t found exact information on how to use it within webflow.
Does anybody here know how I integrate it into my project? Which code-snippets do I need and where do I place them within my project? Or is it something I do after exporting the code?
CSS
Then you need to choose one theme and link to the css file accordingly. You could implement the chosen css in your project custom code setting after the <head> tag like so:
thanks a lot for the quick help :)! It works like this
Maybe two more questions regarding finetuning:
At the pace.js website it’s possible to change the color of the loading bar - you can download the script after chosing a color. Any idea where to place this script?
And: Right now the content of my page is already visible when the loading bar still moves. Any idea how to hide the websites content while the page is still loading?
I just made a div above all my content and gave it the id “cover”. Now the div fades out when everything is loaded and the content becomes visible. That’s what I wanted.