From 65a5bdbd1c8fb8668978bb79757f15f11c4f7155 Mon Sep 17 00:00:00 2001 From: Shahan Nedadahandeh Date: Sun, 1 Jan 2023 16:06:40 -0500 Subject: [PATCH] Added animations (#125) https://shahanneda-animations-csc-class-profile-stag-snedadah.k8s.csclub.cloud/academics/ Co-authored-by: shahanneda Co-authored-by: e26chiu Reviewed-on: https://git.csclub.uwaterloo.ca/www/cs-2022-class-profile/pulls/125 Reviewed-by: Mark Chiu --- components/BarGraph.module.css | 6 ++++++ components/Boxplot.module.css | 1 + components/GroupedBarGraph.module.css | 4 ++++ components/GroupedBarGraph.tsx | 1 + components/Header.module.css | 2 ++ components/LineGraph.module.css | 8 ++++++-- components/PieChart.module.css | 1 + components/Sections.module.css | 21 +++++++++++++++++++-- components/StackedBarGraph.module.css | 5 +++++ components/WordCloud.module.css | 4 ++++ pages/_app.css | 1 + 11 files changed, 50 insertions(+), 4 deletions(-) diff --git a/components/BarGraph.module.css b/components/BarGraph.module.css index af16d7f..2e426fe 100644 --- a/components/BarGraph.module.css +++ b/components/BarGraph.module.css @@ -1,9 +1,15 @@ .barBackground { fill: var(--card-background); + transition: fill 0.5s ease-out; } .bar { fill: var(--primary-accent-light); + transition: fill 0.5s ease-out; +} + +.barGroup { + transition: fill 0.5s ease-out; } .barGroup:hover .bar { diff --git a/components/Boxplot.module.css b/components/Boxplot.module.css index 66dda09..b77fd93 100644 --- a/components/Boxplot.module.css +++ b/components/Boxplot.module.css @@ -1,5 +1,6 @@ .boxplot { fill: var(--primary-accent-light); + transition: fill 0.5s ease-out; } .boxplot:hover { diff --git a/components/GroupedBarGraph.module.css b/components/GroupedBarGraph.module.css index e8b1611..43b5208 100644 --- a/components/GroupedBarGraph.module.css +++ b/components/GroupedBarGraph.module.css @@ -19,6 +19,10 @@ fill: var(--label); } +.bar { + transition: fill 0.5s ease-out; +} + .legend { display: flex; margin: calc(16rem / 16); diff --git a/components/GroupedBarGraph.tsx b/components/GroupedBarGraph.tsx index 4ea148a..e437137 100644 --- a/components/GroupedBarGraph.tsx +++ b/components/GroupedBarGraph.tsx @@ -603,6 +603,7 @@ function HoverableBar(props: HoverableBarProps) { }} >