У меня есть следующий Codepen, где я пытаюсь анимировать штрих круг вокруг изображения.
Пока что у меня есть круг SVG, который обрезает изображение, но не показывает штрих внутри clipPath.
Как сделать, чтобы граница отображалась?
class App extends React.Component {
render() {
return (
<svg width='48' height='48'>
<defs>
<clipPath id='circleView'>
<circle cx='24' cy='24' r='23' fill='none' stroke='red' strokeWidth='2' />
</clipPath>
</defs>
<image width='48' height='48' xlinkHref={'https://source.unsplash.com/random'} clipPath='url(#circleView)' />
</svg>
)
}
}