I have a DIV
(.container
) and a button
(.btn
) which i want to hide until the page is fully loaded.I managed to do it by using dispay:none on a small jquery
snippet, but it would be better if i could use visibillity:hidden because the page wouldnt shift (like it does with display:none
).
basically, I have:
<style>
.container {visibility:hidden;}
.btn {visibility:hidden;}
</style
Is there any nice soul that could help me with jquery
part so it only shows once the page is fully loaded?