Browse Source

Signed-off-by: Caner <40012261+Canees@users.noreply.github.com>

Caner 3 years ago
parent
commit
0a867f0172

+ 7 - 0
svg延路径移动/horse-motion.svg

@@ -0,0 +1,7 @@
+<svg width="360" height="200" xmlns="http://www.w3.org/2000/svg">
+  <title>马儿跑</title>
+  <text font-family="microsoft yahei" font-size="40" x="0" y="0" fill="#cd0000">马
+    <animateMotion rotate="auto" path="M10,80 q100,120 120,20 q140,-50 160,0" begin="0s" dur="3s" repeatCount="indefinite"/>
+  </text> 
+  <path d="M10,80 q100,120 120,20 q140,-50 160,0" stroke="#cd0000" stroke-width="2" fill="none" />
+</svg>

+ 21 - 0
svg延路径移动/路径 32.svg

@@ -0,0 +1,21 @@
+
+<svg width="422px" height="409px" viewBox="0 0 422 409" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <defs>
+        <linearGradient x1="-4.10590071%" y1="7.4791565%" x2="86.2799922%" y2="88.4341707%" id="linearGradient-1">
+            <stop stop-color="#04C6FB" offset="0%"></stop>
+            <stop stop-color="#5BFAB8" offset="21.7773066%"></stop>
+            <stop stop-color="#90FFD3" stop-opacity="0" offset="100%"></stop>
+        </linearGradient>
+        <filter id="f1" x="0" y="0">
+            <feGaussianBlur in="SourceGraphic" stdDeviation="1" />
+        </filter>
+    </defs>
+
+            <g transform="translate(-1032.000000, -631.000000)" stroke="url(#linearGradient-1)" stroke-width="2"  fill="none" fill-rule="evenodd">
+                <path d="M1038.47866,631.993881 C1035.22987,648.396005 1033.60548,656.597067 1033.60548,656.597067 C1033.60548,656.597067 1083.3177,687.641236 1083.3177,687.641236 C1083.3177,687.641236 1081.40446,712.234757 1077.57797,761.421798 L1508.89822,1080"></path>
+                <circle cx="0" cy="0" r="5" stroke="none" fill="red" filter="url(#f1)">
+                    <animateMotion id="toRight" path="M1038.47866,631.993881 C1035.22987,648.396005 1033.60548,656.597067 1033.60548,656.597067 C1033.60548,656.597067 1083.3177,687.641236 1083.3177,687.641236 C1083.3177,687.641236 1081.40446,712.234757 1077.57797,761.421798 L1508.89822,1080" begin="0s" dur="8" repeatCount="indefinite"/>                
+                    <animateMotion id="toLeft" path="M1038.47866,631.993881 C1035.22987,648.396005 1033.60548,656.597067 1033.60548,656.597067 C1033.60548,656.597067 1083.3177,687.641236 1083.3177,687.641236 C1083.3177,687.641236 1081.40446,712.234757 1077.57797,761.421798 L1508.89822,1080" begin="0s" dur="8" repeatCount="indefinite"/>                
+                </circle>
+            </g>
+</svg>

BIN
svg延路径移动/进度.gif


+ 102 - 0
水球效果/index.html

@@ -0,0 +1,102 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>Document</title>
+    <style>
+        body,
+        div,
+        h1,
+        h2,
+        h3,
+        html,
+        li,
+        p,
+        ul {
+            margin: 0;
+            padding: 0;
+            box-sizing: border-box;
+        }
+
+        @-webkit-keyframes move_wave {
+            0% {
+                background-position: 0 0
+            }
+
+            to {
+                background-position: 532px 0
+            }
+        }
+
+        @keyframes move_wave {
+            0% {
+                background-position: 0 0
+            }
+
+            to {
+                background-position: 532px 0
+            }
+        }
+
+        .boll {
+            height: 174px;
+            width: 174px;
+            border-radius: 50%;
+            border: 2px solid #fe810c;
+            float: left;
+            position: relative;
+            font-size: 14px;
+            overflow: hidden;
+        }
+
+        .text {
+            text-align: center;
+            margin-top: 40px;
+            color: #fe810c;
+        }
+
+        .num {
+            font-size: 30px;
+        }
+
+        .water {
+            height: 50%;
+            background: url(water.png) repeat-x;
+            position: absolute;
+            width: 100%;
+            -webkit-animation: move_wave 4s linear infinite;
+            animation: move_wave 4s linear infinite;
+        }
+
+        .w1 {
+            opacity: .5;
+            background-position: 120px 0;
+            -webkit-animation: move_wave 10s linear infinite;
+            animation: move_wave 10s linear infinite;
+        }
+
+        .w2 {
+            opacity: .3;
+            background-position: 60px 0;
+            -webkit-animation: move_wave 8s linear infinite;
+            animation: move_wave 8s linear infinite;
+        }
+    </style>
+</head>
+
+<body>
+    <div class="boll">
+        <div class="text">
+            <p class="num">6542.3214</p>
+            <p>BTC</p>
+        </div>
+        <div class="water w1"></div>
+        <div class="water w2"></div>
+        <div class="water"></div>
+    </div>
+</body>
+
+</html>

BIN
水球效果/water.png


+ 38 - 0
流星效果/index.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+  <meta charset="UTF-8">
+  <title>纯CSS3流星雨动画DEMO演示</title>
+
+  <link rel="stylesheet" href="style.css">
+
+</head>
+
+<body>
+  <div class="night">
+    <div class="shooting_star"></div>
+    <!-- <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div>
+    <div class="shooting_star"></div> -->
+  </div>
+
+</body>
+
+</html>

+ 334 - 0
流星效果/style.css

@@ -0,0 +1,334 @@
+body {
+  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
+  height: 100vh;
+  overflow: hidden;
+  font-family: 'Anton', sans-serif;
+  justify-content: center;
+  align-items: center;
+}
+
+.night {
+  position: relative;
+  width: 100%;
+  height: 100%;
+  -webkit-transform: rotateZ(45deg);
+          transform: rotateZ(45deg);
+  /* -webkit-animation: sky 200000ms linear infinite;
+          animation: sky 200000ms linear infinite; */
+}
+
+.shooting_star {
+  position: absolute;
+  left: 50%;
+  top: 50%;
+  height: 2px;
+  background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0));
+  border-radius: 999px;
+  -webkit-filter: drop-shadow(0 0 6px #699bff);
+          filter: drop-shadow(0 0 6px #699bff);
+  -webkit-animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
+          animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
+}
+/* .shooting_star::before, .shooting_star::after {
+  content: '';
+  position: absolute;
+  top: calc(50% - 1px);
+  right: 0;
+  height: 2px;
+  background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0));
+  -webkit-transform: translateX(50%) rotateZ(45deg);
+          transform: translateX(50%) rotateZ(45deg);
+  border-radius: 100%;
+  -webkit-animation: shining 3000ms ease-in-out infinite;
+          animation: shining 3000ms ease-in-out infinite;
+} */
+/* .shooting_star::after {
+  -webkit-transform: translateX(50%) rotateZ(-45deg);
+          transform: translateX(50%) rotateZ(-45deg);
+} */
+.shooting_star:nth-child(1) {
+  top: calc(50% - 185px);
+  left: calc(50% - 150px);
+  -webkit-animation-delay: 8971ms;
+          animation-delay: 8971ms;
+}
+.shooting_star:nth-child(1)::before, .shooting_star:nth-child(1)::after, .shooting_star:nth-child(1)::after {
+  -webkit-animation-delay: 8971ms;
+          animation-delay: 8971ms;
+}
+.shooting_star:nth-child(2) {
+  top: calc(50% - 50px);
+  left: calc(50% - 179px);
+  -webkit-animation-delay: 9256ms;
+          animation-delay: 9256ms;
+}
+.shooting_star:nth-child(2)::before, .shooting_star:nth-child(2)::after, .shooting_star:nth-child(2)::after {
+  -webkit-animation-delay: 9256ms;
+          animation-delay: 9256ms;
+}
+.shooting_star:nth-child(3) {
+  top: calc(50% - -146px);
+  left: calc(50% - 135px);
+  -webkit-animation-delay: 8700ms;
+          animation-delay: 8700ms;
+}
+.shooting_star:nth-child(3)::before, .shooting_star:nth-child(3)::after, .shooting_star:nth-child(3)::after {
+  -webkit-animation-delay: 8700ms;
+          animation-delay: 8700ms;
+}
+.shooting_star:nth-child(4) {
+  top: calc(50% - -77px);
+  left: calc(50% - 157px);
+  -webkit-animation-delay: 3147ms;
+          animation-delay: 3147ms;
+}
+.shooting_star:nth-child(4)::before, .shooting_star:nth-child(4)::after, .shooting_star:nth-child(4)::after {
+  -webkit-animation-delay: 3147ms;
+          animation-delay: 3147ms;
+}
+.shooting_star:nth-child(5) {
+  top: calc(50% - -183px);
+  left: calc(50% - 8px);
+  -webkit-animation-delay: 6588ms;
+          animation-delay: 6588ms;
+}
+.shooting_star:nth-child(5)::before, .shooting_star:nth-child(5)::after, .shooting_star:nth-child(5)::after {
+  -webkit-animation-delay: 6588ms;
+          animation-delay: 6588ms;
+}
+.shooting_star:nth-child(6) {
+  top: calc(50% - -29px);
+  left: calc(50% - 195px);
+  -webkit-animation-delay: 8009ms;
+          animation-delay: 8009ms;
+}
+.shooting_star:nth-child(6)::before, .shooting_star:nth-child(6)::after, .shooting_star:nth-child(6)::after {
+  -webkit-animation-delay: 8009ms;
+          animation-delay: 8009ms;
+}
+.shooting_star:nth-child(7) {
+  top: calc(50% - 95px);
+  left: calc(50% - 69px);
+  -webkit-animation-delay: 5420ms;
+          animation-delay: 5420ms;
+}
+.shooting_star:nth-child(7)::before, .shooting_star:nth-child(7)::after, .shooting_star:nth-child(7)::after {
+  -webkit-animation-delay: 5420ms;
+          animation-delay: 5420ms;
+}
+.shooting_star:nth-child(8) {
+  top: calc(50% - -59px);
+  left: calc(50% - 70px);
+  -webkit-animation-delay: 9378ms;
+          animation-delay: 9378ms;
+}
+.shooting_star:nth-child(8)::before, .shooting_star:nth-child(8)::after, .shooting_star:nth-child(8)::after {
+  -webkit-animation-delay: 9378ms;
+          animation-delay: 9378ms;
+}
+.shooting_star:nth-child(9) {
+  top: calc(50% - 76px);
+  left: calc(50% - 238px);
+  -webkit-animation-delay: 2845ms;
+          animation-delay: 2845ms;
+}
+.shooting_star:nth-child(9)::before, .shooting_star:nth-child(9)::after, .shooting_star:nth-child(9)::after {
+  -webkit-animation-delay: 2845ms;
+          animation-delay: 2845ms;
+}
+.shooting_star:nth-child(10) {
+  top: calc(50% - 83px);
+  left: calc(50% - 6px);
+  -webkit-animation-delay: 5205ms;
+          animation-delay: 5205ms;
+}
+.shooting_star:nth-child(10)::before, .shooting_star:nth-child(10)::after, .shooting_star:nth-child(10)::after {
+  -webkit-animation-delay: 5205ms;
+          animation-delay: 5205ms;
+}
+.shooting_star:nth-child(11) {
+  top: calc(50% - -137px);
+  left: calc(50% - 267px);
+  -webkit-animation-delay: 808ms;
+          animation-delay: 808ms;
+}
+.shooting_star:nth-child(11)::before, .shooting_star:nth-child(11)::after, .shooting_star:nth-child(11)::after {
+  -webkit-animation-delay: 808ms;
+          animation-delay: 808ms;
+}
+.shooting_star:nth-child(12) {
+  top: calc(50% - 12px);
+  left: calc(50% - 8px);
+  -webkit-animation-delay: 2406ms;
+          animation-delay: 2406ms;
+}
+.shooting_star:nth-child(12)::before, .shooting_star:nth-child(12)::after, .shooting_star:nth-child(12)::after {
+  -webkit-animation-delay: 2406ms;
+          animation-delay: 2406ms;
+}
+.shooting_star:nth-child(13) {
+  top: calc(50% - 148px);
+  left: calc(50% - 47px);
+  -webkit-animation-delay: 7566ms;
+          animation-delay: 7566ms;
+}
+.shooting_star:nth-child(13)::before, .shooting_star:nth-child(13)::after, .shooting_star:nth-child(13)::after {
+  -webkit-animation-delay: 7566ms;
+          animation-delay: 7566ms;
+}
+.shooting_star:nth-child(14) {
+  top: calc(50% - -28px);
+  left: calc(50% - 75px);
+  -webkit-animation-delay: 7634ms;
+          animation-delay: 7634ms;
+}
+.shooting_star:nth-child(14)::before, .shooting_star:nth-child(14)::after, .shooting_star:nth-child(14)::after {
+  -webkit-animation-delay: 7634ms;
+          animation-delay: 7634ms;
+}
+.shooting_star:nth-child(15) {
+  top: calc(50% - -37px);
+  left: calc(50% - 203px);
+  -webkit-animation-delay: 7743ms;
+          animation-delay: 7743ms;
+}
+.shooting_star:nth-child(15)::before, .shooting_star:nth-child(15)::after, .shooting_star:nth-child(15)::after {
+  -webkit-animation-delay: 7743ms;
+          animation-delay: 7743ms;
+}
+.shooting_star:nth-child(16) {
+  top: calc(50% - 41px);
+  left: calc(50% - 256px);
+  -webkit-animation-delay: 2888ms;
+          animation-delay: 2888ms;
+}
+.shooting_star:nth-child(16)::before, .shooting_star:nth-child(16)::after, .shooting_star:nth-child(16)::after {
+  -webkit-animation-delay: 2888ms;
+          animation-delay: 2888ms;
+}
+.shooting_star:nth-child(17) {
+  top: calc(50% - -35px);
+  left: calc(50% - 121px);
+  -webkit-animation-delay: 5864ms;
+          animation-delay: 5864ms;
+}
+.shooting_star:nth-child(17)::before, .shooting_star:nth-child(17)::after, .shooting_star:nth-child(17)::after {
+  -webkit-animation-delay: 5864ms;
+          animation-delay: 5864ms;
+}
+.shooting_star:nth-child(18) {
+  top: calc(50% - 73px);
+  left: calc(50% - 225px);
+  -webkit-animation-delay: 7883ms;
+          animation-delay: 7883ms;
+}
+.shooting_star:nth-child(18)::before, .shooting_star:nth-child(18)::after, .shooting_star:nth-child(18)::after {
+  -webkit-animation-delay: 7883ms;
+          animation-delay: 7883ms;
+}
+.shooting_star:nth-child(19) {
+  top: calc(50% - -69px);
+  left: calc(50% - 47px);
+  -webkit-animation-delay: 3339ms;
+          animation-delay: 3339ms;
+}
+.shooting_star:nth-child(19)::before, .shooting_star:nth-child(19)::after, .shooting_star:nth-child(19)::after {
+  -webkit-animation-delay: 3339ms;
+          animation-delay: 3339ms;
+}
+.shooting_star:nth-child(20) {
+  top: calc(50% - 162px);
+  left: calc(50% - 129px);
+  -webkit-animation-delay: 7963ms;
+          animation-delay: 7963ms;
+}
+.shooting_star:nth-child(20)::before, .shooting_star:nth-child(20)::after, .shooting_star:nth-child(20)::after {
+  -webkit-animation-delay: 7963ms;
+          animation-delay: 7963ms;
+}
+
+@-webkit-keyframes tail {
+  0% {
+    width: 0;
+  }
+  30% {
+    width: 100px;
+  }
+  100% {
+    width: 0;
+  }
+}
+
+@keyframes tail {
+  0% {
+    width: 0;
+  }
+  30% {
+    width: 100px;
+  }
+  100% {
+    width: 0;
+  }
+}
+@-webkit-keyframes shining {
+  0% {
+    width: 0;
+  }
+  50% {
+    width: 30px;
+  }
+  100% {
+    width: 0;
+  }
+}
+@keyframes shining {
+  0% {
+    width: 0;
+  }
+  50% {
+    width: 30px;
+  }
+  100% {
+    width: 0;
+  }
+}
+@-webkit-keyframes shooting {
+  0% {
+    -webkit-transform: translateX(0);
+            transform: translateX(0);
+  }
+  100% {
+    -webkit-transform: translateX(300px);
+            transform: translateX(300px);
+  }
+}
+@keyframes shooting {
+  0% {
+    -webkit-transform: translateX(0);
+            transform: translateX(0);
+  }
+  100% {
+    -webkit-transform: translateX(300px);
+            transform: translateX(300px);
+  }
+}
+@-webkit-keyframes sky {
+  0% {
+    -webkit-transform: rotate(45deg);
+            transform: rotate(45deg);
+  }
+  100% {
+    -webkit-transform: rotate(405deg);
+            transform: rotate(405deg);
+  }
+}
+@keyframes sky {
+  0% {
+    -webkit-transform: rotate(45deg);
+            transform: rotate(45deg);
+  }
+  100% {
+    -webkit-transform: rotate(405deg);
+            transform: rotate(405deg);
+  }
+}