@buzuosheng/loading
Version:
CSS laoding Component implemented by React
28 lines (27 loc) • 788 B
JSX
import React from "react";
export const HalfCircle = (props) => {
return (
<svg
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width={props.width || "40px"}
height={props.height || "40px"}
viewBox="0 0 50 50"
>
<path
fill={props.color || "#1890ff"}
d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"
>
<animateTransform
attributeType="xml"
attributeName="transform"
type="rotate"
from="0 25 25"
to="360 25 25"
dur="1s"
repeatCount="indefinite"
/>
</path>
</svg>
);
};