convert-next.js

This commit is contained in:
R-Bharathraj
2026-06-29 18:07:43 +05:30
parent 4760f8e063
commit 0140b0bdf8
1474 changed files with 16523 additions and 9272 deletions

18
src/utils/animation.ts Normal file
View File

@@ -0,0 +1,18 @@
export const DEFAULT_EASE = 'power3.out';
export const DEFAULT_DURATION = 0.9;
export const SCROLL_TRIGGER_DEFAULTS = {
start: 'top 85%',
toggleActions: 'play none none reset',
};
export function timelineDefaults(overrides = {}) {
return Object.assign({ ease: DEFAULT_EASE, duration: DEFAULT_DURATION }, overrides);
}
export default {
DEFAULT_EASE,
DEFAULT_DURATION,
SCROLL_TRIGGER_DEFAULTS,
timelineDefaults,
};