This commit is contained in:
2025-11-08 14:01:00 +08:00
parent 82d434017d
commit a247df6d11
5 changed files with 25 additions and 10 deletions

View File

@@ -161,6 +161,13 @@ function Truth() {
initial={{ opacity: 0, x: -30 }}
animate={isMainInView ? { opacity: 1, x: 0 } : { opacity: 0, x: -30 }}
transition={{ duration: 0.5, delay: 0.3 + index * 0.1, ease: "easeOut" }}
cursor="pointer"
onClick={() => {
const url = item.url;
if (url) {
window.open(url, '_blank');
}
}}
>
<MotionImage
src={item.image}
@@ -177,13 +184,6 @@ function Truth() {
initial={{ opacity: 0, y: 20 }}
animate={isMainInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }}
transition={{ duration: 0.5, delay: 0.5 + index * 0.1, ease: "easeOut" }}
cursor="pointer"
onClick={() => {
const url = item.url;
if (url) {
window.open(url, '_blank');
}
}}
>
{renderDescription(item.desc)}
</MotionText>