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

feat: add ThreeDTiltFx component with 3D tilt effect and styling #20

Closed
wants to merge 2 commits into from

Conversation

lightyfr
Copy link
Contributor

@lightyfr lightyfr commented Dec 7, 2024

This pull request introduces a new ThreeDTiltFx component, which adds a 3D tilt effect to elements. The most important changes include the creation of the component, its associated styles, and its export in the component index.

New ThreeDTiltFx component:

  • src/once-ui/components/ThreeDTiltFx.tsx: Implemented the ThreeDTiltFx component, which applies a 3D tilt effect to its children based on mouse movement. The component includes customizable properties such as maxTilt, dampening, and transitionDuration.

Associated styles:

Component export:

Demo:

Recording.2024-12-07.023236.mp4

Copy link

vercel bot commented Dec 7, 2024

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

Name Status Preview Comments Updated (UTC)
once-ui-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2024 7:25am

@lightyfr
Copy link
Contributor Author

lightyfr commented Dec 7, 2024

Oh just remembered you announced TiltFx in the community event lol. You can close this PR.

@lorant-one
Copy link
Member

yeah that's a coincidence @lightyfr but i'll incorporate some of the props you used for yours to improve customization ;)

@zsofiakm zsofiakm added this to the v0.5 milestone Dec 9, 2024
@lorant-one
Copy link
Member

element added in 0.5 independently

@lorant-one lorant-one closed this Jan 3, 2025
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.

3 participants