Windows 8 preloader (loading icon) using HTML5 and javascript without images

后端 未结 6 1710
借酒劲吻你
借酒劲吻你 2021-01-31 19:37

I noticed a simple thing while looking at the screen of Windows 8 loading screen, there is a preloader (or loading icon) which is quite interesting, it has a bit of gravity/swin

6条回答
  •  南旧
    南旧 (楼主)
    2021-01-31 20:40

    Check website CSSload. Here you can make your CSS loader in few seconds. I've made Windows 8 loader, so you can see it here.

    @keyframes orbit {
       0% {
          opacity: 1;
          z-index:99;
          transform: rotate(180deg);
          animation-timing-function: ease-out;
       }
    
       7% {
          opacity: 1;
          transform: rotate(300deg);
          animation-timing-function: linear;
          origin:0%;
       }
    
       30% {
          opacity: 1;
          transform:rotate(410deg);
          animation-timing-function: ease-in-out;
          origin:7%;
       }
    
       39% {
          opacity: 1;
          transform: rotate(645deg);
          animation-timing-function: linear;
          origin:30%;
       }
    
       70% {
          opacity: 1;
          transform: rotate(770deg);
          animation-timing-function: ease-out;
          origin:39%;
       }
    
       75% {
          opacity: 1;
          transform: rotate(900deg);
          animation-timing-function: ease-out;
          origin:70%;
       }
    
       76% {
          opacity: 0;
          transform:rotate(900deg);
       }
    
       100% {
          opacity: 0;
          transform: rotate(900deg);
       }
    }
    

    Alternatively, try this code example...

提交回复
热议问题