From 339bdb8b0449ce846cd8ccbd6dabf2b97fef3e54 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Hinse Date: Fri, 29 Nov 2024 12:27:50 -0500 Subject: [PATCH] Make sure the Flare logo animation is centered + use same animation as website --- .../src/components/FlareLogoLoading.css | 5 +- .../src/components/icons/FlareLogo.tsx | 98 ++++++++++--------- 2 files changed, 56 insertions(+), 47 deletions(-) diff --git a/packages/react-components/src/components/FlareLogoLoading.css b/packages/react-components/src/components/FlareLogoLoading.css index c538b0c..55b5695 100644 --- a/packages/react-components/src/components/FlareLogoLoading.css +++ b/packages/react-components/src/components/FlareLogoLoading.css @@ -7,7 +7,10 @@ .flare-logo-loading-svg { transform-origin: 50% 50%; - animation: rotate-flare-logo 0.4s linear infinite; + animation-name: rotate-flare-logo; + animation-iteration-count: infinite; + animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); + animation-duration: 0.8s; } /* Animations */ diff --git a/packages/react-components/src/components/icons/FlareLogo.tsx b/packages/react-components/src/components/icons/FlareLogo.tsx index 65eedfb..7e6e795 100644 --- a/packages/react-components/src/components/icons/FlareLogo.tsx +++ b/packages/react-components/src/components/icons/FlareLogo.tsx @@ -12,72 +12,78 @@ const FlareLogo: FC<{ remSize: number; hidden?: boolean }> = ({ remSize, hidden - - - - - - + + - - + + - - + + - - + + + + + + + + );