Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve type error in BlurFade component for inView margin prop #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RizwiS
Copy link

@RizwiS RizwiS commented Oct 31, 2024

  • Updated BlurFade component by casting inViewMargin to any when passed to useInView, bypassing strict typing issues with framer-motion.
  • This change ensures compatibility with custom string values for the margin parameter, preventing TypeScript errors while maintaining the intended blur and fade effects.

- Updated `BlurFade` component by casting `inViewMargin` to `any` when passed to `useInView`, bypassing strict typing issues with `framer-motion`.
- This change ensures compatibility with custom string values for the margin parameter, preventing TypeScript errors while maintaining the intended blur and fade effects.
Copy link

vercel bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
portfolio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 11:15pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant