About Proximity Sensor
Remix the Project for Free
This component makes any element react and move away from your cursor when you get close to it, creating a magnetic repulsion effect. The closer your mouse gets, the more the element shifts away, and it smoothly returns to its original position when your cursor moves beyond the threshold distance.
Start with the free remix to see the component set up in a Framer project. Copy it into your site and adjust the settings to fit your design.
Ready to publish your site? Get 3 months free on Framer Pro annual hosting with code partner25proyearly at checkout. Claim offer.
Instructions
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

