Sunday, March 19, 2023
HomeCSShtml - Why does my animation add artefacts to my spinner in...

html – Why does my animation add artefacts to my spinner in Moz Firefox?


<fashion>
  .loader {
    show: inline-flex;
    width: 0.75em;
    peak: 0.75em;
    border-radius: 50%;
    define: none;
    place: relative;
    animation: rotate 1s linear infinite
  }
  
  .loader::earlier than {
    content material: "";
    box-sizing: border-box;
    place: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 0.15em stable;
    animation: prixClipFix 1.8s linear infinite;
  }
  
   :is(h1, h2, h3, h4, h5) .loader::earlier than {
    border-width: 0.1em;
  }
  
  @keyframes rotate {
    100% {
      rework: rotate(360deg)
    }
  }
  
  @keyframes prixClipFix {
    0% {
      clip-path: polygon(50% 50%, 0 0, 10% 0, 10% 0, 10% 0, 10% 0)
    }
    25% {
      clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    50% {
      clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
    75% {
      clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    100% {
      clip-path: polygon(50% 50%, 0 0, 10% 0, 10% 0, 10% 0, 10% 0)
    }
  }
</fashion>
<div>
  <!-- <div class="spin"></div> -->
  <h1>Loading
    <div class="loader"></div>
  </h1>
  <h2>Loading
    <div class="loader"></div>
  </h2>
  <h3>Loading
    <div class="loader"></div>
  </h3>
  <h4>Loading
    <div class="loader"></div>
  </h4>
  <h5>Loading
    <div class="loader"></div>
  </h5>
  Loading
  <div class="loader"></div>
</div>
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments