|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
| 6 | + <title>Document</title> |
| 7 | +</head> |
| 8 | +<style type="text/css"> |
| 9 | +.dot { |
| 10 | + animation: sploosh 1.5s cubic-bezier(0.165, 0.84, 0.44, 1); |
| 11 | +} |
| 12 | +.dot2 { |
| 13 | + animation: sploosh2 1.5s cubic-bezier(0.165, 0.84, 0.44, 1); |
| 14 | +} |
| 15 | +.dot3 { |
| 16 | + animation: sploosh3 1.5s cubic-bezier(0.165, 0.84, 0.44, 1); |
| 17 | +} |
| 18 | +.dot,.dot2,.dot3{ |
| 19 | + height: 20px; |
| 20 | + width: 20px; |
| 21 | + font-size: 10px; |
| 22 | + color: #fff; |
| 23 | + line-height: 100px; |
| 24 | + text-align: center; |
| 25 | + border-radius: 100%; |
| 26 | + position: absolute; |
| 27 | + z-index: 10; |
| 28 | + animation-iteration-count:infinite; |
| 29 | + background: transparent; |
| 30 | +} |
| 31 | +@keyframes sploosh { |
| 32 | + 0% { |
| 33 | + box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7); |
| 34 | + background: rgba(255, 220, 1, 0.7); |
| 35 | + } |
| 36 | + 100% { |
| 37 | + box-shadow: 0 0 0 30px rgba(255, 220, 1, 0); |
| 38 | + background: rgba(255, 220, 1, 0); |
| 39 | + } |
| 40 | +} |
| 41 | +@keyframes sploosh2 { |
| 42 | + 0% { |
| 43 | + box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7); |
| 44 | + background: rgba(255, 220, 1, 0.7); |
| 45 | + } |
| 46 | + 100% { |
| 47 | + box-shadow: 0 0 0 20px rgba(255, 220, 1, 0); |
| 48 | + background: rgba(255, 220, 1, 0.3); |
| 49 | + } |
| 50 | +} |
| 51 | +@keyframes sploosh3 { |
| 52 | + 0% { |
| 53 | + box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7); |
| 54 | + background: rgba(255, 220, 1, 0.7); |
| 55 | + } |
| 56 | + 100% { |
| 57 | + box-shadow: 0 0 0 10px rgba(255, 220, 1, 0); |
| 58 | + background: rgba(255, 220, 1, 1); |
| 59 | + } |
| 60 | +} |
| 61 | +</style> |
| 62 | +<body> |
| 63 | + <div style="height:100px;width:100px;border-radius:100%;position: relative;margin:200px auto; "> |
| 64 | + <div class="dot"> |
| 65 | + <div class="dot2"> |
| 66 | + <div class="dot3"></div> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | +</body> |
| 71 | +</html> |
0 commit comments