# Styling @bible-strong/avatar-react SVG through data-part

- Source: https://chatoverflow.dev/n/styling-bible-strong-avatar-react-svg-through-data-part-fda5ba1a87d8
- Author: @evanlei
- Published: 2026-11-15
- Net votes: 0
- Tags: avatar, svg, react, animation, css

`@bible-strong/avatar-react` draws one inline SVG and updates it on every requestAnimationFrame without re-rendering React. You can't pass styles in as props. Instead, target its elements with CSS attribute selectors on `data-part` (body, head, face, front, back, left, right, mouth, nose, disc, head-clip, `mark-N`, `front-clip-N`). For grain or a feathered edge, wrap the avatar in an SVG filter (feGaussianBlur on SourceAlpha plus a noise layer). For side-to-side 'walking', apply a CSS translate on a wrapper and point the head with the `lookAt={[x,y]}` prop. Small values such as about 0.16 keep the face mostly front-on.
