检测到论坛CSS可能没有正确加载,如出现排版混乱请刷新重试。

We detected that the CSS might not be loaded correctly. If the website displays abnormally, Please refresh and try again.

  • Windows
  • 以假乱真——Windows 11 oobe 动画

さらば限界少女 无,因为11的 oobe 应该没有别的动画了(别告诉我左侧的那些复杂动画)。

さらば限界少女 蓝色环的边缘不够圆角

我只能说限于 svg 技术限制和我的能力范围应该是不行了……这个是 circle 动态改变的,如果用 Path 可以圆,只是要一帧帧的设参数,这个太 Difficult 了。当然,如果有更好的方案的话我可以修改。

个人认为这个可以放在静态网页上做一个加载动画。

    さらば限界少女 还有别的建议吗……其实我也在 github 上有 Blog(悄声细语),也就是说这个动画未来是给它用的

    2 个月 后

    感谢 Edge 的设置页面,现在它有圆角了。
    上传总是破坏效果,上代码。
    在适当位置添加stroke-linecap="round"就可以了。
    效果:

      DaleZ 现在你只需要实现非线性旋转就可以彻底乱真了[tieba=huaji]

        何木槿 难,因为实现方式不同。
        微软:SVG+CSS3
        我:纯 SVG
        因此我的方式会一直存在一个加速度。如果不改变实现方法就会一直这样。(微软居然用一条 CSS 就搞定了)
        我会上传那个保存的设置页面,大家一起玩[tieba=huaji]

          DaleZ

          b3cbf4fb-fb92-48ea-a5c1-5ad9be96278b.zip
          30kB

            DaleZ 找到了微软的 Keyflames,调好了。
            微软的方法:

            <html>
            <head>
            <title>ProgressBar</title>
            <style>
            .c01234 {
              text-align: left;
              align-items: center;
            }
            .c01247 {
              width: 16px;
              height: 16px;
            }
            @media (-ms-high-contrast:active) {
              .c01234 {
                -ms-high-contrast-adjust: none;
              }
            }
            .c01235 {
              display: inline-block;
            }
            .c01235 .c01240, .c01235 .c01242 {
              fill: none;
              transform: rotate(-90deg);
              transition: all 0.2s ease-in-out;
              stroke-width: 2px;
              stroke-linecap: round;
              transform-origin: 50% 50%;
            }
            .c01235 .c01240 {
              stroke: #63ADE5;
            }
            .c01235 .c01241 {
              animation: spin-infinite 2s linear infinite;
            }
            .c01235 .c01242 {
              stroke: #4D4D4D;
            }
            @-webkit-keyframes spin-infinite {
              0% {
                stroke-dasharray: 0.01px 43.97px;
                transform: rotate(0deg);
              }
              50% {
                transform: rotate(450deg);
                stroke-dasharray: 21.99px 21.99px;
              }
              100% {
                stroke-dasharray: .01px 43.97px;
                transform: rotate(1080deg);
              }
            }
            </style>
            </head>
            <body>
            <div class="c01234 c01247 c01234 c01247 c01235" role="progressbar" aria-valuemin="0" aria-valuemax="100"><div slot="indeterminate"><svg class="c01238 c01248" viewBox="0 0 16 16"><circle class="c01242" cx="8px" cy="8px" r="7px"></circle><circle class="c01240 c01241" cx="8px" cy="8px" r="7px"></circle></svg></div></div>
            </body>
            </html>

            我的方法:

            应该是最终版了,请自行对比。

            幕后彩蛋


            为了确定加载圈到底是不是用 HTML 写的,于是……[tieba=huaji]

              6 个月 后

              さらば限界少女 现在已有方法可以查看这些动画。
              写一个 HTML,至少应该有这些内容:

              <script src="https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.10.2/lottie.min.js" integrity="sha512-fTTVSuY9tLP+l/6c6vWz7uAQqd1rq3Q/GyKBN2jOZvJSLC5RjggSdboIFL1ox09/Ezx/AKwcv/xnDeYN9+iDDA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

              然后在这里找到动画文件:

              "C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\images\"

              然后在控制台中输入:

              lottie.loadAnimation({
                  container: document.body,
                  renderer: 'svg',
                  loop: true,
                  autoplay: true,
                  path: 'file.json' 
              });

              (可能需要将文件 Base64 转码后填入 path 内)
              效果:

              Windows 10X 的动画可能也是相同原理。。。

                DaleZ Windows 10X 的动画可能也是相同原理。。。

                答案:true。

                © 2025 wvbCommunity 管理团队

                删封申诉 | 知乎专栏 | 状态监控 | 用户协议(EULA) | 隐私政策

                本站文章除其作者特殊声明外,一律采用CC BY-NC-SA 4.0许可协议进行授权,进行转载或二次创作时务必以相同协议进行共享,严禁用于商业用途。