UNPKG

svg-loaders-react

Version:

React implementation of the SVG Loaders library by Sam Herbert

79 lines (76 loc) 1.82 kB
import React from 'react'; const BallTriangle = ({ className = undefined, // String ...props }) => ( <svg width={57} height={57} stroke="#fff" viewBox="0 0 57 57" className={`svg-loaders-svg${className ? ` ${className}` : ''}`} {...props}> <g transform="translate(1 1)" strokeWidth={2} fill="none" fillRule="evenodd" > <circle cx={5} cy={50} r={5}> <animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite" /> </circle> <circle cx={27} cy={5} r={5}> <animate attributeName="cy" begin="0s" dur="2.2s" from={5} to={5} values="5;50;50;5" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="cx" begin="0s" dur="2.2s" from={27} to={27} values="27;49;5;27" calcMode="linear" repeatCount="indefinite" /> </circle> <circle cx={49} cy={50} r={5}> <animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="cx" from={49} to={49} begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite" /> </circle> </g> </svg> ); export { BallTriangle };