Cursor Magic: Unique Hover Effect Made Simple
Learn how to effortlessly integrate eye-catching cursor designs into your Webflow site without custom code.
Learn how to effortlessly integrate eye-catching cursor designs into your Webflow site without custom code.
Create a div named cursor-magic.
Style settings:
Width & Height as desired
Overflow: Hidden
Position: Relative
Background: Gradient color
Add a div inside cursor-magic called pointer-wrap.
Style settings:
Display: Flex, align Center.
Position: Absolute, fill container.
Inside pointer-wrap, add a div called pointer-gradient.
Style settings:
Width: 50VH. Height: 50VH
Background: Circular gradient (same color, transparency from 100% at center to 0% at edges).
Set pointer-wrap Opacity to 0% (this will be changed later with hover interaction).
Add a div inside cursor-magic called pattern.
Style settings:
Position: Absolute, fill container.
Background: Choose an image with seamless borders and transparent design.
Here are some designs to get inspired: LINK
Add a div inside cursor-magic called content.
Style settings:
Display: Flex, align Center.
Position: Absolute, fill container.
Place text and other elements inside this div.
Ensure the div structure follows this order:
cursor-magic
↳ pointer wrap
↳ pointer-gradient
↳ pattern
↳ content
Add a Mouse move over element interaction to cursor-magic.
Target the Pointer-wrap and add a move action as follows:
Mouse X actions: at 0%: -50%. at 100%: 50%
Mouse Y actions: at 0%: -50%. at 100%: 50%
Now create a new Hover animation to cursor-magic.
Hover in animation:
Target the pointer-wrap and set (Only children with this class):
Opacity: 0% Initial
Opacity 100%. Delay: 0. Duration: 0.3
Hover out animation:
Target the pointer-wrap and set (All elements with this class):
Opacity: 0% . Delay: 0. Duration: 0