@@ -534,12 +534,6 @@ const handleStart = async () => {
534534</template >
535535
536536<style module>
537- @property --x {
538- syntax: "<percentage> ";
539- inherits: false;
540- initial-value : 0%;
541- }
542-
543537.card {
544538 position : relative ;
545539
@@ -555,58 +549,58 @@ const handleStart = async () => {
555549 position : absolute ;
556550 top : 0 ;
557551 bottom : 0 ;
558- left : 0 ;
552+ left : -200 px ;
559553 right : 0 ;
560554
561555 &.starting {
562556 background : radial-gradient (
563- ellipse farthest-corner at var ( --x ) 0% ,
557+ ellipse farthest-corner at 50 % 0% ,
564558 rgba (230 , 197 , 37 , 25% ) 0% ,
565559 rgba (230 , 197 , 37 , 5% ) 70% ,
566560 rgba (230 , 197 , 37 , 0% ) 100%
567561 ),
568562 radial-gradient (ellipse at bottom , rgba (230 , 197 , 37 , 10% ), transparent );
569- animation : colorChange 4 s infinite alternate ;
563+ animation : colorChange 6 s infinite alternate ;
570564 }
571565
572566 &.started {
573567 background : radial-gradient (
574- ellipse farthest-corner at var ( --x ) 0% ,
568+ ellipse farthest-corner at 50 % 0% ,
575569 rgba (24 , 210 , 165 , 25% ) 0% ,
576570 rgba (24 , 210 , 165 , 5% ) 70% ,
577571 rgba (24 , 210 , 165 , 0% ) 100%
578572 ),
579573 radial-gradient (ellipse at bottom , rgba (24 , 210 , 165 , 10% ), transparent );
580- animation : colorChange 4 s infinite alternate ;
574+ animation : colorChange 6 s infinite alternate ;
581575 }
582576
583577 &.failed {
584578 background : radial-gradient (
585- ellipse farthest-corner at var ( --x ) 0% ,
579+ ellipse farthest-corner at 50 % 0% ,
586580 rgba (235 , 87 , 87 , 25% ) 0% ,
587581 rgba (235 , 87 , 87 , 5% ) 70% ,
588582 rgba (235 , 87 , 87 , 0% ) 100%
589583 ),
590584 radial-gradient (ellipse at bottom , rgba (235 , 87 , 87 , 10% ), transparent );
591- animation : colorChange 4 s infinite alternate ;
585+ animation : colorChange 6 s infinite alternate ;
592586 }
593587}
594588
595589@keyframes colorChange {
596590 0% {
597- --x : 0% ;
598-
599591 opacity : 1 ;
592+ left : -200px ;
593+ right : 0 ;
600594 }
601595 50% {
602- --x : 50% ;
603-
604596 opacity : 0.5 ;
597+ left : 0 ;
598+ right : -200px ;
605599 }
606600 100% {
607- --x : 100% ;
608-
609601 opacity : 1 ;
602+ left : -200px ;
603+ right : 0 ;
610604 }
611605}
612606
0 commit comments