This commit is contained in:
huangjinming 2023-04-28 11:20:38 +08:00
parent ac8d86a18e
commit 7c371c723d
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export function useMouseRotation() {
const rotationY = -(relX / halfWidth);
const rotationX = relY / halfHeight;
cardStyle.transform = `rotateX(${rotationX * 10}deg) rotateY(${rotationY * 10}deg)`;
cardStyle.transform = `rotateX(${rotationX * 5}deg) rotateY(${rotationY * 5}deg)`;
};
const startTracking = (event) => {

View File

@ -388,7 +388,7 @@ onUnmounted(() => {
transition: transform 0.1s ease;
transform-style: preserve-3d;
cursor: pointer;
perspective: 400px;
perspective: 1000px;
}
.card-title {
font-size: 80px;