Support Team
posted this
12 December 2022
Hi, João,
Sorry for the delay.
The CSS code can be added in Site Settings ==> CSS. Concerning the JavaScript code, you should first wrap it into the script HTML tag, and add it in Site Settings ==> HTML ==> Additional Head HTML. It is how it should look:
<script>
function setFadeIn(){
document.body.className = 'body fade-in'
setTimeout(setFadeOut, 500);
}
function setFadeOut(){
document.body.className = 'body';
}
</script>
Let us know if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
Hi, João,
Sorry for the delay.
The CSS code can be added in *Site Settings ==> CSS*. Concerning the JavaScript code, you should first wrap it into the *script* HTML tag, and add it in *Site Settings ==> HTML ==> Additional Head HTML*. It is how it should look:
<script>
function setFadeIn(){
document.body.className = 'body fade-in'
setTimeout(setFadeOut, 500);
}
function setFadeOut(){
document.body.className = 'body';
}
</script>
Let us know if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp