File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div style =" padding : 2rem " >
3+ <button @click =" show = !show" >Toggle Fade</button >
4+ <!-- Use the component -->
5+ <Fade :duration =" 600" :appear =" true" easing =" ease-in-out" >
6+ <p v-if =" show" >✨ Hello World from Fade Animation !</p >
7+ </Fade >
8+ <!-- Use these props to change the behavior of your animation -->
9+ </div >
10+ </template >
11+
12+ <script setup>
13+ import { ref } from ' vue'
14+ // Import the component
15+ import { Fade } from ' ../../src/components/Fade.vue'
16+ const show = ref (true )
17+ </script >
Original file line number Diff line number Diff line change 1+ <!doctype html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < title > Vue Motion Example - Basic</ title >
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ </ head >
8+ < body >
9+ < div id ="app "> </ div >
10+ < script type ="module " src ="./main.js "> </ script >
11+ </ body >
12+ </ html >
Original file line number Diff line number Diff line change 1+ import { createApp } from 'vue'
2+ import App from './app.vue'
3+
4+ // Import the styles in main.js + Use the Component in you project (app.vue)
5+ import '../../src/styles/animations.css'
6+
7+ const app = createApp ( App )
8+ app . mount ( '#app' )
You can’t perform that action at this time.
0 commit comments