MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / onFocus

Function onFocus

src/content/Components/PixelCard/PixelCard.jsx:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 const onMouseEnter = () => handleAnimation('appear');
202 const onMouseLeave = () => handleAnimation('disappear');
203 const onFocus = e => {
204 if (e.currentTarget.contains(e.relatedTarget)) return;
205 handleAnimation('appear');
206 };
207 const onBlur = e => {
208 if (e.currentTarget.contains(e.relatedTarget)) return;
209 handleAnimation('disappear');

Callers

nothing calls this directly

Calls 1

handleAnimationFunction · 0.70

Tested by

no test coverage detected