-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
202 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
import * as React from 'react'; | ||
const Spinner = ({ width = 200, height = 200, fill = '#f96d69', ...props }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 100 100" | ||
preserveAspectRatio="xMidYMid" | ||
width={width} | ||
height={height} | ||
style={{ | ||
shapeRendering: 'auto', | ||
display: 'block', | ||
background: 'transparent', | ||
}} | ||
xmlnsXlink="http://www.w3.org/1999/xlink" | ||
{...props} | ||
> | ||
<g> | ||
<g transform="rotate(0 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.9166666666666666s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(30 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.8333333333333334s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(60 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.75s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(90 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.6666666666666666s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(120 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.5833333333333334s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(150 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.5s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(180 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.4166666666666667s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(210 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.3333333333333333s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(240 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.25s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(270 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.16666666666666666s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(300 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="-0.08333333333333333s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g transform="rotate(330 50 50)"> | ||
<rect fill={fill} height={12} width={6} ry={6} rx={3} y={24} x={47}> | ||
<animate | ||
repeatCount="indefinite" | ||
begin="0s" | ||
dur="1s" | ||
keyTimes="0;1" | ||
values="1;0" | ||
attributeName="opacity" | ||
/> | ||
</rect> | ||
</g> | ||
<g /> | ||
</g> | ||
</svg> | ||
); | ||
export default Spinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters