Skip to content

Commit

Permalink
fix(directives): fix locations for baked
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenJPx2 committed Jan 18, 2024
1 parent 1319f96 commit ec3afcd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const onAfterEnter = async () => {
v-aos="{
baked: true,
options: {
scrollAnimationOptions: { start: 'top 60%' },
animationOptions: {
opacity: true,
translate: true,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/use-animate-on-scroll/directive.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useAnimateOnScroll, useBakedAnimateOnScroll } from ".";
import { defineDirective } from "../baked/directive";
import { defineDirective } from "../../utils/baked";

export const vAos = defineDirective({
fn: useAnimateOnScroll,
Expand Down
6 changes: 4 additions & 2 deletions src/functions/use-gsap/directive.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { useGsap, useBakedFromTo, type UseGsapReturn } from ".";
import { directiveHooks } from "@vueuse/core";
import type { ObjectDirective } from "nuxt/dist/app/compat/capi";
import type { DirectiveOptions } from "../baked/directive";
import type { UseBakedAnimationOptions } from "../baked/types";
import type {
DirectiveOptions,
UseBakedAnimationOptions,
} from "../../utils/baked";

export const vFromTo: ObjectDirective<
HTMLElement,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/use-split-text-animation/directive.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSplitTextAnimation, useBakedSplitTextAnimation } from ".";
import { defineDirective } from "../baked/directive";
import { defineDirective } from "../../utils/baked";

export const vSplitAnimate = defineDirective({
fn: useSplitTextAnimation,
Expand Down
1 change: 1 addition & 0 deletions src/utils/baked/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./directive";
export * from "./utils";
export * from "./presets";

0 comments on commit ec3afcd

Please sign in to comment.