Thevetats Ramblings

Explore

About
Blogs
Misc
Resume
Services
Testing
Tools

Blogs

Env

Freshstart

Aliases
How I config my System76
Un-F%ck your M2 for development
ZSH Functions

Toolbelt

What's usually in the workvan

Rust

Notes

Primeagen's Rust for TS Devs

RustGoTs

Primeagen's Polyglot Class 1
Primeagen's Polyglot Class 2
Primeagen's Polyglot Class 3

Tauri

Setting up Tauri with Vite

WebDev

Ai

TheBeast

Slaying the beast

ComponentLibary

Salt Life
Submodules in Git

Sql

Useful SQL

Unocss

Just one more...
Setting up UnoCSS in a Vite Project

Vue

Reference

Suspense
Transitions

Transitions

Published
December 7, 2022
Tags
#notes#vue#web dev

testv-enter-from: Starting state for enter. Added before the element is inserted, removed one frame after the element is inserted.

v-enter-active: Active state for enter. Applied during the entire entering phase. Added before the element is inserted, removed when the transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition.

v-enter-to: Ending state for enter. Added one frame after the element is inserted (at the same time v-enter-from is removed), removed when the transition/animation finishes.

v-leave-from: Starting state for leave. Added immediately when a leaving transition is triggered, removed after one frame.

v-leave-active: Active state for leave. Applied during the entire leaving phase. Added immediately when a leaving transition is triggered, removed when the transition/animation finishes. This class can be used to define the duration, delay and easing curve for the leaving transition.

v-leave-to: Ending state for leave. Added one frame after a leaving transition is triggered (at the same time v-leave-from is removed), removed when the transition/animation finishes.

html
<Transition
  tag="div"
  enter-from-class=""
  enter-active-class=""
  leave-active-class=""
  leave-to-class=""
>

</Transition>

Snippet

json
    "Transition": {
        "prefix": "ntran",
        "body": [
            "<Transition",
            "  tag=\"div\"",
            "  enter-from-class=\"\"",
            "  enter-active-class=\"\"",
            "  leave-active-class=\"\"",
            "  leave-to-class=\"\"",
            ">",
            "\t${1:content}",
            "</Transition>"
        ],
        "description": "New Blank Vue Transition"
    }
Made from scratch with ❤️ by Thevetat