Skip to content

moveWhileFocus

Add focus animations to inputs, buttons, or cards. The animation plays forward on focus and reverses on blur.

Configuration

300ms
100ms2000ms
Easingease
200ms
0ms1000ms
Preview Area
demo.htmlhtml
<div
  [moveWhileFocus]="{ scale: [1, 1.05], y: [0, -4] }"
  moveReverseDuration="200"
  moveReverseEasing="ease-out">
  Target Element
</div>