Proximity Sensor

Show Preview
Proximity Sensor
Proximity Sensor

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

  1. Copy and paste the Proximity Sensor component into your Framer project

  2. Connect any element or frame you want to add the proximity effect to by selecting it in the "Content" property control

  3. 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

  4. Adjust the Displacement amount to control how far the element moves away from your cursor at maximum intensity

  5. 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

From Nabeel

Confetti Rain
Animated Glow
CMS Tilt
Scroll SVG Reveal

Related Components

Motion Text FX
SVG Path Animation
3D Rolodex Carousel
Watter ripple effect