This component makes any element react and move away from your cursor when you get close to it, creating a magnetic repulsion effect
Make it with Workshop
Build your own component with AI
This component a part of the 400+ components, layouts, templates, UI Kits and code overrides from SegmentUI PRO. Click here to see the full library
Copy and paste the Proximity Sensor component into your Framer project
Connect any element or frame you want to add the proximity effect to by selecting it in the "Content" property control
Set the Threshold distance (in pixels) to control how far away your cursor needs to be before the effect activates—larger values mean the element reacts from further away
Adjust the Displacement amount to control how far the element moves away from your cursor at maximum intensity
Choose a Direction: select "Auto" to let it intelligently move horizontally or vertically based on cursor approach, or lock it to specific directions (→, ←, ↑, ↓), and customize the Transition settings for spring physics (stiffness and damping) - all in the property controls panel
The component works by tracking your mouse position and calculating the distance between your cursor and the element's center. When your cursor enters the threshold radius, the element automatically displaces itself in the opposite direction with intensity based on proximity. You can set it to move automatically (intelligently choosing horizontal or vertical displacement) or lock it to specific directions (left, right, up, down). The transition settings control how smoothly the element moves and returns to position.
When you purchase this component, you'll receive:
The Component Itself - Full access to the component all future updates
Remix File with Component Setup - A complete Remix file with the component pre-configured and ready to integrate into your project.
Setup Instructions - Clear, step-by-step instructions to help you implement the component quickly and correctly.
Dedicated Support - Direct access to our team for assistance if you encounter any issues during setup or implementation.
For any queries and help setting up the component, contact hello@segmentui.com
If a component does not function as advertised and the issue cannot be resolved, you are eligible for a full refund under our quality guarantee. Refunds will not be provided for any other reasons, including change of mind, accidental purchase, lack of use, or expectations of features not explicitly advertised.