Fix: cursor outline scale depuis le bon centre
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
scale() dans le transform plutôt qu'en propriété CSS séparée. La propriété scale CSS calcule son transform-origin sur la position layout (avant translate), pas la position visuelle — d'où le décalage. Avec transform: translate(-50%, -50%) scale(0.5), le centre reste en (0,0). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8b4fa2aa47
commit
a1785743c9
1 changed files with 2 additions and 2 deletions
|
|
@ -71,11 +71,11 @@
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border: 2px solid #04fea0;
|
border: 2px solid #04fea0;
|
||||||
transition: scale 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upon-target .cursor-outline {
|
.upon-target .cursor-outline {
|
||||||
scale: 0.5;
|
transform: translate(-50%, -50%) scale(0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue