Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
✨ move mouse or drag to make me fly ✨
css
body { position: relative; background: #0b1223; height: 100vh; cursor: none; touch-action: none; } .dragon { position: absolute; background-color: #fff; border-radius: 999px; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .dragon:nth-of-type(100) { display: flex; justify-content: center; align-items: center; } .dragon svg { position: absolute; width: 170%; height: 170%; } :root { --hue: 200; } .darker { fill: hsl(var(--complementary), 60%, 80%); } .base { fill: hsl(var(--hue), 60%, 80%); } .subtle { fill: hsl(var(--hue), 50%, 70%); } .dragon:nth-child(1) { width: 20.6666666667px; height: 20.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(1):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.125px solid transparent; border-right: 0.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(2) { width: 21.3333333333px; height: 21.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(2):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.25px solid transparent; border-right: 0.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(3) { width: 22px; height: 22px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(3):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.375px solid transparent; border-right: 0.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(4) { width: 22.6666666667px; height: 22.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(4):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.5px solid transparent; border-right: 0.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(5) { width: 23.3333333333px; height: 23.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(5):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.625px solid transparent; border-right: 0.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(6) { width: 24px; height: 24px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(6):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.75px solid transparent; border-right: 0.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(7) { width: 24.6666666667px; height: 24.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(7):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 0.875px solid transparent; border-right: 0.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(8) { width: 25.3333333333px; height: 25.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(8):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1px solid transparent; border-right: 1px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(9) { width: 26px; height: 26px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(9):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.125px solid transparent; border-right: 1.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(10) { width: 26.6666666667px; height: 26.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(10):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.25px solid transparent; border-right: 1.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(11) { width: 27.3333333333px; height: 27.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(11):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.375px solid transparent; border-right: 1.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(12) { width: 28px; height: 28px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(12):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.5px solid transparent; border-right: 1.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(13) { width: 28.6666666667px; height: 28.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(13):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.625px solid transparent; border-right: 1.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(14) { width: 29.3333333333px; height: 29.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(14):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.75px solid transparent; border-right: 1.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(15) { width: 30px; height: 30px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(15):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 1.875px solid transparent; border-right: 1.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(16) { width: 30.6666666667px; height: 30.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(16):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2px solid transparent; border-right: 2px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(17) { width: 31.3333333333px; height: 31.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(17):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.125px solid transparent; border-right: 2.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(18) { width: 32px; height: 32px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(18):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.25px solid transparent; border-right: 2.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(19) { width: 32.6666666667px; height: 32.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(19):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.375px solid transparent; border-right: 2.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(20) { width: 33.3333333333px; height: 33.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(20):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.5px solid transparent; border-right: 2.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(21) { width: 34px; height: 34px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(21):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.625px solid transparent; border-right: 2.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(22) { width: 34.6666666667px; height: 34.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(22):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.75px solid transparent; border-right: 2.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(23) { width: 35.3333333333px; height: 35.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(23):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 2.875px solid transparent; border-right: 2.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(24) { width: 36px; height: 36px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(24):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(25) { width: 36.6666666667px; height: 36.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(25):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.125px solid transparent; border-right: 3.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(26) { width: 37.3333333333px; height: 37.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(26):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.25px solid transparent; border-right: 3.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(27) { width: 38px; height: 38px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(27):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.375px solid transparent; border-right: 3.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(28) { width: 38.6666666667px; height: 38.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(28):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(29) { width: 39.3333333333px; height: 39.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(29):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.625px solid transparent; border-right: 3.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(30) { width: 40px; height: 40px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(30):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.75px solid transparent; border-right: 3.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(31) { width: 40.6666666667px; height: 40.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(31):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3.875px solid transparent; border-right: 3.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(32) { width: 41.3333333333px; height: 41.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(32):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(33) { width: 42px; height: 42px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(33):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.125px solid transparent; border-right: 4.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(34) { width: 42.6666666667px; height: 42.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(34):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.25px solid transparent; border-right: 4.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(35) { width: 43.3333333333px; height: 43.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(35):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.375px solid transparent; border-right: 4.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(36) { width: 44px; height: 44px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(36):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(37) { width: 44.6666666667px; height: 44.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(37):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.625px solid transparent; border-right: 4.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(38) { width: 45.3333333333px; height: 45.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(38):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.75px solid transparent; border-right: 4.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(39) { width: 46px; height: 46px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(39):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4.875px solid transparent; border-right: 4.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(40) { width: 46.6666666667px; height: 46.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(40):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(41) { width: 47.3333333333px; height: 47.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(41):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.125px solid transparent; border-right: 5.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(42) { width: 48px; height: 48px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(42):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.25px solid transparent; border-right: 5.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(43) { width: 48.6666666667px; height: 48.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(43):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.375px solid transparent; border-right: 5.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(44) { width: 49.3333333333px; height: 49.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(44):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.5px solid transparent; border-right: 5.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(45) { width: 50px; height: 50px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(45):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.625px solid transparent; border-right: 5.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(46) { width: 50.6666666667px; height: 50.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(46):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.75px solid transparent; border-right: 5.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(47) { width: 51.3333333333px; height: 51.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(47):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5.875px solid transparent; border-right: 5.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(48) { width: 52px; height: 52px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(48):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(49) { width: 52.6666666667px; height: 52.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(49):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.125px solid transparent; border-right: 6.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(50) { width: 53.3333333333px; height: 53.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(50):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.25px solid transparent; border-right: 6.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(51) { width: 54px; height: 54px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(51):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.375px solid transparent; border-right: 6.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(52) { width: 54.6666666667px; height: 54.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(52):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(53) { width: 55.3333333333px; height: 55.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(53):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.625px solid transparent; border-right: 6.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(54) { width: 56px; height: 56px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(54):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.75px solid transparent; border-right: 6.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(55) { width: 56.6666666667px; height: 56.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(55):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6.875px solid transparent; border-right: 6.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(56) { width: 57.3333333333px; height: 57.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(56):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(57) { width: 58px; height: 58px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(57):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.125px solid transparent; border-right: 7.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(58) { width: 58.6666666667px; height: 58.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(58):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.25px solid transparent; border-right: 7.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(59) { width: 59.3333333333px; height: 59.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(59):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.375px solid transparent; border-right: 7.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(60) { width: 60px; height: 60px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(60):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(61) { width: 60.6666666667px; height: 60.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(61):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.625px solid transparent; border-right: 7.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(62) { width: 61.3333333333px; height: 61.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(62):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.75px solid transparent; border-right: 7.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(63) { width: 62px; height: 62px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(63):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 7.875px solid transparent; border-right: 7.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(64) { width: 62.6666666667px; height: 62.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(64):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(65) { width: 63.3333333333px; height: 63.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(65):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.125px solid transparent; border-right: 8.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(66) { width: 64px; height: 64px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(66):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.25px solid transparent; border-right: 8.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(67) { width: 64.6666666667px; height: 64.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(67):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.375px solid transparent; border-right: 8.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(68) { width: 65.3333333333px; height: 65.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(68):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.5px solid transparent; border-right: 8.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(69) { width: 66px; height: 66px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(69):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.625px solid transparent; border-right: 8.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(70) { width: 66.6666666667px; height: 66.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(70):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.75px solid transparent; border-right: 8.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(71) { width: 67.3333333333px; height: 67.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(71):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8.875px solid transparent; border-right: 8.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(72) { width: 68px; height: 68px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(72):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(73) { width: 68.6666666667px; height: 68.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(73):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.125px solid transparent; border-right: 9.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(74) { width: 69.3333333333px; height: 69.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(74):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.25px solid transparent; border-right: 9.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(75) { width: 70px; height: 70px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(75):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.375px solid transparent; border-right: 9.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(76) { width: 70.6666666667px; height: 70.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(76):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.5px solid transparent; border-right: 9.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(77) { width: 71.3333333333px; height: 71.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(77):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.625px solid transparent; border-right: 9.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(78) { width: 72px; height: 72px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(78):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.75px solid transparent; border-right: 9.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(79) { width: 72.6666666667px; height: 72.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(79):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9.875px solid transparent; border-right: 9.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(80) { width: 73.3333333333px; height: 73.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(80):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(81) { width: 74px; height: 74px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(81):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.125px solid transparent; border-right: 10.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(82) { width: 74.6666666667px; height: 74.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(82):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.25px solid transparent; border-right: 10.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(83) { width: 75.3333333333px; height: 75.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(83):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.375px solid transparent; border-right: 10.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(84) { width: 76px; height: 76px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(84):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.5px solid transparent; border-right: 10.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(85) { width: 76.6666666667px; height: 76.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(85):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.625px solid transparent; border-right: 10.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(86) { width: 77.3333333333px; height: 77.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(86):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.75px solid transparent; border-right: 10.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(87) { width: 78px; height: 78px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(87):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10.875px solid transparent; border-right: 10.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(88) { width: 78.6666666667px; height: 78.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(88):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(89) { width: 79.3333333333px; height: 79.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(89):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.125px solid transparent; border-right: 11.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(90) { width: 80px; height: 80px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(90):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.25px solid transparent; border-right: 11.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(91) { width: 80.6666666667px; height: 80.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(91):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.375px solid transparent; border-right: 11.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(92) { width: 81.3333333333px; height: 81.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(92):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.5px solid transparent; border-right: 11.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(93) { width: 82px; height: 82px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(93):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.625px solid transparent; border-right: 11.625px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(94) { width: 82.6666666667px; height: 82.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(94):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.75px solid transparent; border-right: 11.75px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(95) { width: 83.3333333333px; height: 83.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(95):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11.875px solid transparent; border-right: 11.875px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(96) { width: 84px; height: 84px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(96):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(97) { width: 84.6666666667px; height: 84.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(97):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12.125px solid transparent; border-right: 12.125px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(98) { width: 85.3333333333px; height: 85.3333333333px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(98):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12.25px solid transparent; border-right: 12.25px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(99) { width: 86px; height: 86px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(99):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12.375px solid transparent; border-right: 12.375px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(100) { width: 86.6666666667px; height: 86.6666666667px; --width: 20px + $i / 1.5; --height: 13px + $i / 1.5; --bg: hsl(var(--hue), 60%, 80%); --light: hsl(var(--hue), 90%, 100%); background-color: var(--bg); } .dragon:nth-child(100):before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12.5px solid transparent; border-right: 12.5px solid transparent; border-radius: 10%; border-bottom: 15px solid hsl(var(--complementary), 80%, 90%); } .dragon:nth-child(100):after { content: none; } .dragon:nth-child(10n) { background-color: var(--bg); background-image: repeating-radial-gradient(circle at 0.5em 0, var(--bg) 0.4em, rgba(255, 255, 255, 0.6) 0.45em, rgba(255, 255, 255, 0.6) 0.5em, rgba(255, 255, 255, 0) 0.51em, rgba(255, 255, 255, 0) 3em); background-size: 1em 0.5em; } .dragon:nth-child(100) { background-color: var(--bg); background-image: repeating-radial-gradient(circle at 0.5em 0, var(--bg) 0.4em, rgba(255, 255, 255, 0.3) 0.45em, rgba(255, 255, 255, 0.3) 0.5em, rgba(255, 255, 255, 0) 0.51em, rgba(255, 255, 255, 0) 3em); background-size: 1em 0.5em; } .dragon:not(:nth-child(10n + 1)):before { content: none; } h1 { color: #fff; font-size: 0.9rem; margin-top: 1rem; text-align: center; position: fixed; top: 0; width: 100vw; left: 0; font-family: Futura, Trebuchet MS, Arial, sans-serif; }
JavaScript
var dragonSegments = [...document.querySelectorAll(".dragon")]; dragonSegments.reverse(); var startPos = { x: window.innerWidth / 2, y: window.innerHeight / 2 }; var mouse = { x: startPos.x, y: startPos.y }; var speed = 0.6; let root = document.documentElement; let hue = Math.floor(Math.random() * 360); let complementary = hue + 100; root.style.setProperty("--hue", hue); root.style.setProperty("--complementary", complementary); dragonSegments.forEach((segment, index) => { segment.x = startPos.x; segment.y = startPos.y; let newHue = hue + index; segment.style.setProperty("--hue", newHue); }); // set initial position gsap.set(".dragon", { x: startPos.x, y: startPos.y, xPercent: -50, yPercent: -50 }); window.addEventListener("mousemove", (e) => { mouse.x = e.x; mouse.y = e.y; }); window.addEventListener("touchmove", (e) => { var poke = e.changedTouches[0]; mouse.x = poke.clientX; mouse.y = poke.clientY; }); function trail(follower, leader) { follower.x += (leader.x - follower.x) * speed; follower.y += (leader.y - follower.y) * speed; gsap.set(follower, { x: follower.x, y: follower.y }); } gsap.ticker.add(() => { dragonSegments.forEach((segment, i) => { let previousSegment = dragonSegments[i - 1]; if (i === 0) { trail(segment, mouse); } else { trail(segment, previousSegment); } }); });
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>100 divs - 龙-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号