Skip to content

Commit c17da0b

Browse files
committed
Add : Example Folder Added
1 parent 76e0e46 commit c17da0b

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

examples/basic/app.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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>

examples/basic/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>

examples/basic/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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')

0 commit comments

Comments
 (0)