Skip to content

Commit 946c7d0

Browse files
authored
Merge pull request #25 from csesoc/CW2-58-animate-button
[CW2-58] Animate Follow Button
2 parents 6469bae + 7a4b02f commit 946c7d0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: frontend/src/pages/about/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function AboutPage() {
1818
<h2 className="mt-10 text-3xl font-extrabold">CSESoc</h2>
1919
<p className="text-[#727B8C] font-medium">unsw-computer-science-engineering-society</p>
2020
<a href="https://www.facebook.com/csesoc/" target="_blank">
21-
<button className="bg-[#444F6F] w-full my-5 py-2 rounded">Follow</button>
21+
<button className="bg-[#444F6F] w-full my-5 py-2 rounded hover-animate">Follow</button>
2222
</a>
2323
<p>
2424
CSESoc is the principal representative body for UNSW computing students.

Diff for: frontend/src/styles/globals.css

+8
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ body {
2121
.animate-blink {
2222
animation: blink 1s step-end infinite;
2323
}
24+
25+
.hover-animate {
26+
transition: transform 0.3s ease;
27+
}
28+
29+
.hover-animate:hover {
30+
transform: scale(1.01);
31+
}

0 commit comments

Comments
 (0)