hide elements until alpine js loads

Solutions on MaxInterview for hide elements until alpine js loads by the best coders in the world

showing results for - "hide elements until alpine js loads"
Mairead
28 Oct 2020
1//Add `x-cloak` to any element you wish to hide while alpine loads
2// It'll be removed when Alpine is loaded
3<div class="step2" x-show="condition" x-cloak >...
4// Also add the following to your css
5[x-cloak] {
6    display: none !important;
7}
8