Presets

Arrow nudge button

A button whose arrow icon slides forward on hover, hinting at 'go'.

CSSTailwindReactGIFMP4
00.000 / 0.300s
timing
style
content
20 max

npm i motion · the component uses motion/react

How it works

The arrow nudge button has a label followed by an arrow icon. On hover the arrow slides forward a few pixels, a small hint that the button takes you somewhere. It is subtle enough for "Continue", "Next step" or "Read more" buttons throughout a product.

The arrow is an inline SVG (a line plus a chevron path, 24 by 24 viewBox) with stroke: currentColor, so it always uses Text color. On hover it transitions from translateX(0) to translateX(Nudge distance px). The default easing is back-out, which overshoots slightly before settling, so the arrow looks like it springs forward rather than sliding mechanically. The icon is aria-hidden; the label alone names the button.

Parameters: Label, Button color, Text color, Nudge distance, Corner radius, Duration and Easing. A nudge of 3 to 6px is enough at an 18px icon; larger distances push the arrow too far from the label. Keep Duration around 0.25 to 0.35s. If back-out feels too playful for your product, switch to ease-out.

Only the icon's transform moves, so the button never changes width and nothing reflows. In right-to-left interfaces, flip both the arrow and the nudge direction (a negative distance with a mirrored path). Add :focus-visible to the hover rule so keyboard users get the same cue.

How do I use my own icon instead of the arrow?

Replace the path inside the svg with your icon's path, keeping viewBox, stroke: currentColor and the transform transition on the svg element. Outline icon sets like Lucide or Heroicons drop in directly because they use the same 24 by 24 grid and stroke style. For filled icons, switch fill to currentColor and remove the stroke.

What does the back-out easing do here?

back-out is a cubic-bezier curve that goes past the end value and returns, so the arrow travels slightly further than Nudge distance before settling. It gives the motion a springy feel without a physics engine. In the React version Motion receives the same curve as an ease array, so all three outputs match.

Can I make the arrow loop while hovered?

Yes. Replace the transition with a keyframe that moves the arrow from 0 to the nudge distance and back, and apply it in the hover rule with infinite iterations. For a non-hover version, see the Animated arrow preset, where three chevrons light up in a loop to point the way.

relatedMore like this

all hover effects →
01 Image zoom on hover hover
Card title Hover to lift this card.
02 Card lift on hover hover
03 Underline grow link hover
04 Fill sweep button hover
Pro feature The border glows on hover.
05 Glow border on hover hover

Export

format
height

480p max · small watermark · 3 per day · remove limits