-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move all working code to runtime/ fixes (#4)
fix: resolve runtime
- Loading branch information
1 parent
f870c50
commit 55f1791
Showing
44 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { vAos } from "./functions/use-animate-on-scroll/directive"; | ||
export { vSplitAnimate } from "./functions/use-split-text-animation/directive"; | ||
export { vFromTo } from "./functions/use-gsap/directive"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import "gsap"; | ||
|
||
export type Direction = "bottom" | "top" | "left" | "right"; | ||
type EaseFunction = | ||
| "power1" | ||
| "power2" | ||
| "power3" | ||
| "power4" | ||
| "back" | ||
| "circ" | ||
| "expo" | ||
| "sine"; | ||
|
||
type ExpressiveEaseFunctions = | ||
| "linear" | ||
| "none" | ||
| "elastic" | ||
| "bounce" | ||
| "rough" | ||
| "slow" | ||
| `steps(${number})`; | ||
|
||
type EaseType = "in" | "out" | "inOut"; | ||
|
||
export type Ease = | ||
| `${EaseFunction}.${EaseType}` | ||
| EaseFunction | ||
| ExpressiveEaseFunctions; | ||
|
||
type EaseOption = { | ||
/** The ease of the tween | ||
* @remarks | ||
* - `Ease` is a custom type that allows the LSP to infer the correct string values for `ease` | ||
* - You can also pass a custom `gsap.EaseFunction` | ||
* */ | ||
ease?: Ease | gsap.EaseFunction; | ||
}; | ||
|
||
export type Simplify<T> = { [K in keyof T]: T[K] } & {}; | ||
|
||
/** Strongly typed TweenVars */ | ||
export type StrongTweenVars = gsap.TweenVars & EaseOption; | ||
|
||
/** Strongly typed TimelineVars */ | ||
export type StrongTimelineVars = gsap.TimelineVars & EaseOption; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.