@ryohey/react-svg-spinners
Version:
> A collection of [SVG Spinners](https://github.com/n3r4zzurr0/svg-spinners) components for React.
5 lines (4 loc) • 1.58 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function BarsScaleFade({ width = 24, height = 24, dur = "0.75s", color, }) {
return (_jsxs("svg", { width: width, height: height, fill: color, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("rect", { x: "1", y: "4", width: "6", height: "14", opacity: "1", children: [_jsx("animate", { id: "a", begin: "0;b.end-0.25s", attributeName: "y", dur: dur, values: "1;5", fill: "freeze" }), _jsx("animate", { begin: "0;b.end-0.25s", attributeName: "height", dur: dur, values: "22;14", fill: "freeze" }), _jsx("animate", { begin: "0;b.end-0.25s", attributeName: "opacity", dur: dur, values: "1;.2", fill: "freeze" })] }), _jsxs("rect", { x: "9", y: "4", width: "6", height: "14", opacity: ".4", children: [_jsx("animate", { begin: "a.begin+0.15s", attributeName: "y", dur: "0.75s", values: "1;5", fill: "freeze" }), _jsx("animate", { begin: "a.begin+0.15s", attributeName: "height", dur: dur, values: "22;14", fill: "freeze" }), _jsx("animate", { begin: "a.begin+0.15s", attributeName: "opacity", dur: dur, values: "1;.2", fill: "freeze" })] }), _jsxs("rect", { x: "17", y: "4", width: "6", height: "14", opacity: ".3", children: [_jsx("animate", { id: "b", begin: "a.begin+0.3s", attributeName: "y", dur: dur, values: "1;5", fill: "freeze" }), _jsx("animate", { begin: "a.begin+0.3s", attributeName: "height", dur: dur, values: "22;14", fill: "freeze" }), _jsx("animate", { begin: "a.begin+0.3s", attributeName: "opacity", dur: dur, values: "1;.2", fill: "freeze" })] })] }));
}