-
-
Save edazpotato/bb2e266131d367da1b03d0560c2fa27d to your computer and use it in GitHub Desktop.
v-cloak for vue.js loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[v-cloak] { | |
visibility: hidden; | |
display: block; | |
padding: 50px 0; | |
} | |
@keyframes spinner { | |
to { | |
transform: rotate(360deg); | |
} | |
} | |
[v-cloak]:before { | |
content: ""; | |
box-sizing: border-box; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
width: 20px; | |
height: 20px; | |
margin-top: -10px; | |
margin-left: -10px; | |
border-radius: 50%; | |
border: 2px solid #ccc; | |
border-top-color: #333; | |
animation: spinner 0.6s linear infinite; | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
[v-cloak]>* { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment