Skip to content

Instantly share code, notes, and snippets.

@reinink
reinink / Modal.vue
Last active November 8, 2020 16:03
<style type="text/css">
.modal-mask {
z-index: 1000;
background-color: rgba(0, 0, 0, .6);
transition: opacity .3s ease;
}
.modal-container {
max-height: 80vh;
transition: transform .2s ease, max-width .1s ease;
@adamwathan
adamwathan / v-cloak.md
Last active February 26, 2023 14:26
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 -->