js+svg实现卡通狗头loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:js+svg实现卡通狗头loading加载动画效果代码

代码标签: js svg 卡通 狗头 loading 加载 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<style>
    html, body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-container {
  position: relative;
  height: 200px;
  width: 200px;
}

.loader-container svg {
  position: absolute;
}

.loader-dog {
  left: 11px;
  bottom: 11px;
  width: 186px;
  height: auto;
}
</style>
</head>
<body>
<!-- partial:index.partial.html -->
<div class="loader-container">
  <svg id="spinner" class="spinner" stroke="#000" width="200" height="200" viewBox="0 0 206 206" xmlns="http://www.w3.org/2000/svg"></svg>
  <svg id="scottie-loader" class="loader-dog" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 207.95 211.52">
    <defs>
      <radialGradient id="a" cx="100.23" cy="111.94" r="146.5" gradientTransform="matrix(.68 0 0 .68 31.58 35.11)" gradientUnits="userSpaceOnUse">
        <stop offset=".51" stop-color="#bedeea"/>
        <stop offset=".68" stop-color="#bcdce7"/>
        <stop offset=".79" stop-color="#b5d4df"/>
        <stop offset=".88" stop-color="#aac6d0"/>
        <stop offset=".96" stop-color="#99b4bb"/>
        <stop offset="1" stop-color="#90a9af"/>
      </radialGradient>
    </defs>
    <circle class="blueCircle" cx="100" cy="111.52" r="100" fill="url(#a)"/>
    <path d="M125 199.08l-13.84-24.34 8.9-26.69-17 .91-39.27-30.15c-10.45 17.2-25.15 37.07-39.33 58.23a100.13 100.13 0 0 0 95.17 32.54l-6.13-16.86z" fill="#010101"/>
    <path class="" d="M197.73 71.64l10.22 6.71-31-58.29a10.75 10.75 0 0 0 4.47-13.3A10.82 10.82 0 0 0 161 13.83l-66.44 43L94 40.87l-6 14.8-7-18.53 1.22 19.66-11.85-11 7.39 21.82-23.52 15.24 8.46 31 .39.17c-3.7 16.38-7.16 32.53-7.16 36.58l44.78 26.27 21.53-35.81 18.49 18.66-7.24-18.76 14.22 14.64-9-21.29 19.62 13.81-14.6-18.31 18.92 14.2-12.43-18.92L165 138.47l-10.53-20.57 16.45 14.16-6.58-16.85 16.1 10.77-10-17.71 14.48 9-11.14-16.62 15.31 10.87-12.31-16.73 17.74 13.34-12.23-18 15.05 11.14-9.77-18.75 14.86 13.12-9-18.41 13.27 12.59z" fill="#010101" fill-rule="evenodd"/>
    <path class="left-ear" d="M88.42 75.73C77.16 62.28 62.48 44.71 45 45.62c-1.61 15.74 8.82 41.9 24.73 48.73a44.07 44.07 0 0 1 18.69-18.62z" fill="#010101" fill-rule="evenodd"/>
    <path d="M167.92 2.39A10.16 10.16 0 0 0 164 5.52a15 15 0 0 1 1.94-1A11.63 11.63 0 0 1 180 9.01a11.06 11.06 0 0 0-.47-1.72 9 9 0 0 0-11.61-4.9zM114.25 64.09a11.82 11.82 0 1 0 5.75 15.6 11.65 11.65 0 0 0-5.75-15.6zm5.38 10.61a6.46 6.46 0 0 1-8.57 3.13.........完整代码请登录后点击上方下载按钮下载查看

网友评论0