Update loading components
This commit is contained in:
@@ -1,22 +1,32 @@
|
||||
import type { LoadingBlocksProps } from "$/types/LoadingTypes";
|
||||
import { usePrefersReducedMotion } from "$/util/AccessibilityUtil";
|
||||
import { useId } from "react";
|
||||
|
||||
|
||||
export default function PulsingBlocks({
|
||||
size,
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.6,
|
||||
animationDuration = 600,
|
||||
color,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
fill,
|
||||
ariaLabel = "Loading"
|
||||
}: Readonly<LoadingBlocksProps>){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-scale.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
const id = useId();
|
||||
const reducedMotion = usePrefersReducedMotion();
|
||||
const dur = reducedMotion ? animationDuration / 100 : animationDuration / 1000;
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
width={size ?? width}
|
||||
height={size ?? height}
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
aria-label={ariaLabel}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
@@ -27,35 +37,35 @@ export default function PulsingBlocks({
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_${id}`}
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
begin={`0;rectangle4_${id}.end+${dur / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
begin={`0;rectangle4_${id}.end+${dur / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
begin={`0;rectangle4_${id}.end+${dur / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle4_${id}.end+${animationDuration / 4}s`}
|
||||
begin={`0;rectangle4_${id}.end+${dur / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
@@ -67,34 +77,34 @@ export default function PulsingBlocks({
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
@@ -106,34 +116,34 @@ export default function PulsingBlocks({
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
@@ -145,35 +155,35 @@ export default function PulsingBlocks({
|
||||
width="9"
|
||||
height="9"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle4_${id}`}
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur * 3 / 4}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1.5;.5;1.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur * 3 / 4}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13.5;12.5;13.5"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur * 3 / 4}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_${id}.begin+${animationDuration * 3 / 4}s`}
|
||||
begin={`rectangle1_${id}.begin+${dur * 3 / 4}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="9;11;9"
|
||||
keyTimes="0;.2;1"
|
||||
/>
|
||||
|
||||
@@ -1,22 +1,32 @@
|
||||
import type { LoadingBlocksProps } from "$/types/LoadingTypes";
|
||||
import { usePrefersReducedMotion } from "$/util/AccessibilityUtil";
|
||||
import { useId } from "react";
|
||||
|
||||
|
||||
export default function SlidingBlocks2({
|
||||
size,
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.2,
|
||||
animationDuration = 200,
|
||||
color,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
fill,
|
||||
ariaLabel = "Loading"
|
||||
}: Readonly<LoadingBlocksProps>){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-shuffle-2.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
const id = useId();
|
||||
const reducedMotion = usePrefersReducedMotion();
|
||||
const dur = reducedMotion ? animationDuration / 100 : animationDuration / 1000;
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
width={size ?? width}
|
||||
height={size ?? height}
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
aria-label={ariaLabel}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
@@ -27,14 +37,14 @@ export default function SlidingBlocks2({
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle2_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -42,7 +52,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle1_2_${id}`}
|
||||
begin={`rectangle2_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -50,7 +60,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle1_3_${id}`}
|
||||
begin={`rectangle2_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -58,7 +68,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle1_4_${id}`}
|
||||
begin={`rectangle2_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -70,14 +80,14 @@ export default function SlidingBlocks2({
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle2_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -85,7 +95,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle2_2_${id}`}
|
||||
begin={`rectangle1_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -93,7 +103,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle2_3_${id}`}
|
||||
begin={`rectangle1_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -101,7 +111,7 @@ export default function SlidingBlocks2({
|
||||
id={`rectangle2_4_${id}`}
|
||||
begin={`rectangle1_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
|
||||
@@ -1,22 +1,32 @@
|
||||
import type { LoadingBlocksProps } from "$/types/LoadingTypes";
|
||||
import { usePrefersReducedMotion } from "$/util/AccessibilityUtil";
|
||||
import { useId } from "react";
|
||||
|
||||
|
||||
export default function SlidingBlocks3({
|
||||
size,
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.2,
|
||||
animationDuration = 200,
|
||||
color,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
fill,
|
||||
ariaLabel = "Loading"
|
||||
}: Readonly<LoadingBlocksProps>){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-shuffle-3.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
const id = useId();
|
||||
const reducedMotion = usePrefersReducedMotion();
|
||||
const dur = reducedMotion ? animationDuration / 100 : animationDuration / 1000;
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
width={size ?? width}
|
||||
height={size ?? height}
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
aria-label={ariaLabel}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
@@ -27,14 +37,14 @@ export default function SlidingBlocks3({
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle3_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -42,7 +52,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle1_2_${id}`}
|
||||
begin={`rectangle3_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -50,7 +60,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle1_3_${id}`}
|
||||
begin={`rectangle3_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -58,7 +68,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle1_4_${id}`}
|
||||
begin={`rectangle3_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -70,14 +80,14 @@ export default function SlidingBlocks3({
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle2_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -85,7 +95,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle2_2_${id}`}
|
||||
begin={`rectangle1_2_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -93,7 +103,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle2_3_${id}`}
|
||||
begin={`rectangle1_3_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -101,7 +111,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle2_4_${id}`}
|
||||
begin={`rectangle1_4_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -113,14 +123,14 @@ export default function SlidingBlocks3({
|
||||
width="10"
|
||||
height="10"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle3_1_${id}`}
|
||||
begin={`rectangle2_1_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -128,7 +138,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle3_2_${id}`}
|
||||
begin={`rectangle2_2_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="13;1"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -136,7 +146,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle3_3_${id}`}
|
||||
begin={`rectangle2_3_${id}.end`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
@@ -144,7 +154,7 @@ export default function SlidingBlocks3({
|
||||
id={`rectangle3_4_${id}`}
|
||||
begin={`rectangle2_4_${id}.end`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;13"
|
||||
fill="freeze"
|
||||
/>
|
||||
|
||||
@@ -1,22 +1,32 @@
|
||||
import type { LoadingBlocksProps } from "$/types/LoadingTypes";
|
||||
import { usePrefersReducedMotion } from "$/util/AccessibilityUtil";
|
||||
import { useId } from "react";
|
||||
|
||||
|
||||
export default function WaveBlocks({
|
||||
size,
|
||||
width,
|
||||
height,
|
||||
className,
|
||||
animationDuration = 0.6,
|
||||
animationDuration = 600,
|
||||
color,
|
||||
stroke,
|
||||
fill
|
||||
}: LoadingBlocksProps){
|
||||
fill,
|
||||
ariaLabel = "Loading"
|
||||
}: Readonly<LoadingBlocksProps>){
|
||||
//https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/blocks-wave.svg
|
||||
const id = crypto.randomUUID().replaceAll("-", "");
|
||||
const id = useId();
|
||||
const reducedMotion = usePrefersReducedMotion();
|
||||
const dur = reducedMotion ? animationDuration / 100 : animationDuration / 1000;
|
||||
|
||||
|
||||
return (
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
width={size ?? width}
|
||||
height={size ?? height}
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
aria-label={ariaLabel}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
@@ -26,32 +36,32 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle1_1_${id}`}
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
begin={`0;rectangle9_1_${id}.end+${dur / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
begin={`0;rectangle9_1_${id}.end+${dur / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
begin={`0;rectangle9_1_${id}.end+${dur / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`0;rectangle9_1_${id}.end+${animationDuration / 3}s`}
|
||||
begin={`0;rectangle9_1_${id}.end+${dur / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -61,31 +71,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -95,31 +105,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 6}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 6}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -129,31 +139,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -163,31 +173,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -197,31 +207,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="1;4;1"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -231,31 +241,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -265,31 +275,31 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="8.33;11.33;8.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration / 2}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur / 2}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
@@ -299,32 +309,32 @@ export default function WaveBlocks({
|
||||
width="7.33"
|
||||
height="7.33"
|
||||
className={className}
|
||||
stroke={stroke}
|
||||
fill={fill}
|
||||
stroke={color ?? stroke}
|
||||
fill={color ?? fill}
|
||||
>
|
||||
<animate
|
||||
id={`rectangle9_1_${id}`}
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur * 2 / 3}s`}
|
||||
attributeName="x"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur * 2 / 3}s`}
|
||||
attributeName="y"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="15.66;18.66;15.66"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur * 2 / 3}s`}
|
||||
attributeName="width"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
<animate
|
||||
begin={`rectangle1_1_${id}.begin+${animationDuration * 2 / 3}s`}
|
||||
begin={`rectangle1_1_${id}.begin+${dur * 2 / 3}s`}
|
||||
attributeName="height"
|
||||
dur={animationDuration}
|
||||
dur={dur}
|
||||
values="7.33;1.33;7.33"
|
||||
/>
|
||||
</rect>
|
||||
|
||||
Reference in New Issue
Block a user