Skip to content

Commit 8f8cfa6

Browse files
committed
KTL-1239 feat: added animation on interaction for the annual report block
1 parent dba43c1 commit 8f8cfa6

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

src/components/AnnualReport/annualReport.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565

6666
.image {
6767
position: absolute;
68+
transform: perspective(1500px) rotateY(15deg);
69+
box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
70+
transition: transform 1s ease 0s;
71+
will-change: transform;
6872

6973
@media (--ktl-mm) {
7074
width: 256px;
@@ -82,6 +86,10 @@
8286
}
8387
}
8488

89+
.imageContainer:hover .image:nth-child(1) {
90+
transform: perspective(3000px) rotateY(0deg) translateX(-18px) translateY(-6px);
91+
}
92+
8593
.image:nth-child(2) {
8694
top: 48px;
8795
left: 72px;
@@ -92,6 +100,10 @@
92100
}
93101
}
94102

103+
.imageContainer:hover .image:nth-child(2) {
104+
transform: perspective(3000px) rotateY(0deg);
105+
}
106+
95107
.image:nth-child(3) {
96108
top: 72px;
97109
left: 96px;
@@ -102,6 +114,10 @@
102114
}
103115
}
104116

117+
.imageContainer:hover .image:nth-child(3) {
118+
transform: perspective(3000px) rotateY(0deg) translateX(18px) translateY(6px);
119+
}
120+
105121
.textContainer {
106122
display: flex;
107123
flex-direction: column;
@@ -113,6 +129,7 @@
113129

114130
@media (--ktl-tl) {
115131
position: relative;
132+
width: unset;
116133
padding: 0;
117134
z-index: 1;
118135
}

src/components/AnnualReport/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
import Button from "@rescui/button";
2+
import cn from "classnames";
13
import * as styles from "./annualReport.module.css";
24
import report1KotlinResults from "./assets/1-kotlin-results.png";
35
import report2MissionRecap from "./assets/2-mission-recap.png";
46
import report3FoundationResults from "./assets/3-foundation-results.png";
5-
import cn from "classnames";
6-
import Button from "@rescui/button";
77

88
export function AnnualReport() {
99
const renderButton = (className: string) => (
1010
<Button
1111
className={className}
1212
mode="outline"
1313
size="l"
14-
// TODO: Update link to the actual report
15-
href="/kotlin-foundation-presentation.pdf"
14+
// TODO: upload actual pdf file with the report
15+
href="/annual-report-2023.pdf"
1616
target="_blank"
1717
>
1818
View annual report

0 commit comments

Comments
 (0)