mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Most simple components created
This commit is contained in:
183
lib/component/loading/block/PulsingBlocks.tsx
Normal file
183
lib/component/loading/block/PulsingBlocks.tsx
Normal file
@@ -0,0 +1,183 @@
|
||||
import type { LoadingBlocksProps } from "$/types/Loading";
|
||||
|
||||
|
||||
export default function PulsingBlocks({
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.6,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-scale.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
x="1.5"
|
||||
y="1.5"
|
||||
rx="1"
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_${id}`}
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="13.5"
|
||||
y="1.5"
|
||||
rx="1"
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="13.5"
|
||||
y="13.5"
|
||||
rx="1"
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="1.5"
|
||||
y="13.5"
|
||||
rx="1"
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle4_${id}`}
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
</rect>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
111
lib/component/loading/block/SlidingBlocks2.tsx
Normal file
111
lib/component/loading/block/SlidingBlocks2.tsx
Normal file
@@ -0,0 +1,111 @@
|
||||
import type { LoadingBlocksProps } from "$/types/Loading";
|
||||
|
||||
|
||||
export default function SlidingBlocks2({
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.2,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-shuffle-2.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
x="1"
|
||||
y="1"
|
||||
rx="1"
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle2_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_2_${id}`}
|
||||
begin={`rectangle2_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_3_${id}`}
|
||||
begin={`rectangle2_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_4_${id}`}
|
||||
begin={`rectangle2_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="1"
|
||||
y="13"
|
||||
rx="1"
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle2_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_2_${id}`}
|
||||
begin={`rectangle1_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_3_${id}`}
|
||||
begin={`rectangle1_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_4_${id}`}
|
||||
begin={`rectangle1_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
</rect>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
154
lib/component/loading/block/SlidingBlocks3.tsx
Normal file
154
lib/component/loading/block/SlidingBlocks3.tsx
Normal file
@@ -0,0 +1,154 @@
|
||||
import type { LoadingBlocksProps } from "$/types/Loading";
|
||||
|
||||
|
||||
export default function SlidingBlocks3({
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.2,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-shuffle-3.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
x="1"
|
||||
y="1"
|
||||
rx="1"
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle3_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_2_${id}`}
|
||||
begin={`rectangle3_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_3_${id}`}
|
||||
begin={`rectangle3_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle1_4_${id}`}
|
||||
begin={`rectangle3_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="1"
|
||||
y="13"
|
||||
rx="1"
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle2_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_2_${id}`}
|
||||
begin={`rectangle1_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_3_${id}`}
|
||||
begin={`rectangle1_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle2_4_${id}`}
|
||||
begin={`rectangle1_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="13"
|
||||
y="13"
|
||||
rx="1"
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle3_1_${id}`}
|
||||
begin={`rectangle2_1_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle3_2_${id}`}
|
||||
begin={`rectangle2_2_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle3_3_${id}`}
|
||||
begin={`rectangle2_3_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
<animate
|
||||
id={`rectangle3_4_${id}`}
|
||||
begin={`rectangle2_4_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
</rect>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
333
lib/component/loading/block/WaveBlocks.tsx
Normal file
333
lib/component/loading/block/WaveBlocks.tsx
Normal file
@@ -0,0 +1,333 @@
|
||||
import type { LoadingBlocksProps } from "$/types/Loading";
|
||||
|
||||
|
||||
export default function WaveBlocks({
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.6,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-wave.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
x="1"
|
||||
y="1"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="8.33"
|
||||
y="1"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="1"
|
||||
y="8.33"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="15.66"
|
||||
y="1"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="8.33"
|
||||
y="8.33"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="1"
|
||||
y="15.66"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="15.66"
|
||||
y="8.33"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="8.33"
|
||||
y="15.66"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
<rect
|
||||
x="15.66"
|
||||
y="15.66"
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle9_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user