Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Mar 10, 2025
1 parent 6795d5a commit a38df57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/directive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function directive<T extends string>(
_node: VNode<any, (HTMLElement | SVGElement) & { motionInstance?: MotionInstance<string, MotionVariants<T>> }, Record<string, any>>,
) => {
// Visibility hooks
// eslint-disable-next-line ts/no-unused-expressions
el.motionInstance && registerVisibilityHooks(el.motionInstance)
}

Expand Down
30 changes: 15 additions & 15 deletions src/utils/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,21 @@ export function getAnimation(key: string, value: MotionValue, target: ResolvedVa
return valueTransition.type === 'inertia' || valueTransition.type === 'decay'
? inertia({ ...options, ...valueTransition })
: animate({
...getPopmotionAnimationOptions(valueTransition, options, key),
onUpdate: (v: any) => {
options.onUpdate(v)

if (valueTransition.onUpdate)
valueTransition.onUpdate(v)
},
onComplete: () => {
if (onComplete)
onComplete()

if (complete)
complete()
},
})
...getPopmotionAnimationOptions(valueTransition, options, key),
onUpdate: (v: any) => {
options.onUpdate(v)

if (valueTransition.onUpdate)
valueTransition.onUpdate(v)
},
onComplete: () => {
if (onComplete)
onComplete()

if (complete)
complete()
},
})
}

/**
Expand Down

0 comments on commit a38df57

Please sign in to comment.