Fixed firefox, because of firefox limitation

This commit is contained in:
BOTAlex 2024-03-31 07:22:04 +02:00
parent 7134f79809
commit b444948903
1 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
// Params // Params
let mouseMoveScale: number = 0.25; let mouseMoveScale: number = 0.25;
let targetTextLenght: number = 70; let targetTextLenght: number = 80;
// Site variables // Site variables
let mousePos: Vector2; let mousePos: Vector2;
@ -93,7 +93,7 @@
<div <div
class="StartPageAnimated" class="StartPageAnimated"
bind:this={StartPageAnimated} bind:this={StartPageAnimated}
style="transform: translate({mouseRelativeScaled.x}px, {mouseRelativeScaled.y}px);" style="transform: translate({mouseRelativeScaled.x}px, {mouseRelativeScaled.y}px) translateZ(0) rotate(0.001deg);"
> >
{#each {length: 100} as _, i} {#each {length: 100} as _, i}
@ -131,7 +131,8 @@
padding: 0; padding: 0;
transition: all 1000ms cubic-bezier(0.16, 1.63, 0.01, 0.99); transition: transform 1000ms cubic-bezier(0.16, 1.63, 0.01, 0.99);
-moz-transition: none;
justify-content: center; justify-content: center;
vertical-align: middle; vertical-align: middle;