基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-04 b3bde921167ee0a7dc21cf7e3d642840a0fcc11e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Sample Wallpaper</title>
  <style>
    html, body {
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #101820;
    }
 
    body::before {
      content: "";
      position: fixed;
      inset: -20%;
      background:
        radial-gradient(circle at 20% 20%, rgba(40, 178, 170, 0.55), transparent 28%),
        radial-gradient(circle at 78% 32%, rgba(255, 183, 77, 0.38), transparent 30%),
        radial-gradient(circle at 45% 80%, rgba(126, 217, 87, 0.35), transparent 34%),
        linear-gradient(135deg, #101820, #1a2633 52%, #0e151c);
      animation: drift 18s ease-in-out infinite alternate;
    }
 
    @keyframes drift {
      from { transform: translate3d(-2%, -1%, 0) scale(1); }
      to { transform: translate3d(2%, 1%, 0) scale(1.04); }
    }
  </style>
</head>
<body>
  <script>
    window.addEventListener("moli:pause", () => document.body.style.animationPlayState = "paused");
    window.addEventListener("moli:resume", () => document.body.style.animationPlayState = "running");
  </script>
</body>
</html>