Help me to create a 3D Wheel Slider with React and Framer Motion-(iOS UIPicker): A Simple Prototype Approach #2510
Unanswered
paperpluto
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR: Looking for assistance in creating a simplified, prototype version of a 3D wheel slider using Framer Motion instead of Keen Slider. The goal is to achieve a similar 3D effect and interactivity but in a more prototype-friendly setup, focusing on dynamic slide transformations and a responsive UI. Would appreciate any guidance or examples on implementing this with Framer Motion.
Here is the Keen Slider CodeSandbox: https://codesandbox.io/p/devbox/5dycwp
I'm working on a project where I need to create a 3D wheel slider similar to what can be achieved with Keen Slider, but I want to prototype this with Framer Motion for a simpler version before committing to a fully detailed implementation. The current setup utilizes Keen Slider's React components to establish a vertical wheel slider with configurable options such as loop, initial index, and perspective (left, right, center). The slider also calculates dynamic slide values based on the component's current state to adjust each slide's rotation and translation, creating a 3D effect.
Here's an overview of what the current implementation does:
Utilizes
useKeenSlider
hook to create a slider with specified options (e.g., loop, initial index, vertical orientation).Calculates the radius, distance and rotation for each slide based on the slider's current size and state to achieve a 3D wheel effect.
Supports dynamic adjustment of slide values to render each slide with the correct 3D transformation.
What I'm aiming for is to translate this functionality into a Framer Motion variant that mimics the same 3D wheel effect but in a simpler, more prototype-friendly manner. I'm particularly interested in how to handle the dynamic calculation of slide transformations and maintaining a smooth, interactive experience that's comparable to the original Keen Slider implementation.
Could anyone provide insights or examples on how to approach this with Framer Motion, especially on handling the inertia and dynamic slide transformations and ensuring a responsive, user-friendly interface? Any advice or shared experiences with similar prototypes would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions