Skip to content

Instantly share code, notes, and snippets.

View eduarguz's full-sized avatar

Eduardo Guzmán H. eduarguz

View GitHub Profile
@eduarguz
eduarguz / v-cloak.md
Created April 4, 2019 16:25 — forked from adamwathan/v-cloak.md
Useful CSS utilities for Vue.js cloaking

Handy helpers for controlling visibility of elements until Vue has compiled.

Use like:

<div v-cloak>
  <h1>
    <span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
    <span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->