Skip to content

Commit d2e8c00

Browse files
author
Edson Batista
committed
feat: add sprite animation for gecko head hover effect
- Add nature-sprite.png for CSS mask animation - Update mask-image URL to use local sprite file - Update dependencies in package.json and pnpm-lock.yaml
1 parent 7e4501f commit d2e8c00

4 files changed

Lines changed: 329 additions & 14 deletions

File tree

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DefaultTheme from 'vitepress/theme';
22
import './custom.css';
33
import { defineAsyncComponent } from 'vue';
4+
import { MotionPlugin } from '@vueuse/motion'
45

56

67
export default {
@@ -10,6 +11,8 @@ export default {
1011
app.component('TerminalIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Terminal)));
1112
app.component('CopyIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Copy)));
1213
app.component('CheckIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Check)));
14+
15+
app.use(MotionPlugin);
1316

1417
if (typeof window !== 'undefined') {
1518
const handleLanguageClick = (e: MouseEvent) => {

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@schepta/core": "workspace:*",
1616
"@schepta/factory-react": "workspace:*",
1717
"@schepta/factory-vue": "workspace:*",
18+
"@vueuse/motion": "^3.0.3",
1819
"lucide-vue-next": "^0.561.0",
1920
"react": "^18.2.0",
2021
"react-dom": "^18.2.0",

docs/public/nature-sprite.png

102 KB
Loading

0 commit comments

Comments
 (0)