鼠标跟随猫眼效果
代码语言:html
所属分类:视觉差异
代码描述:鼠标跟随猫眼效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } :root { --size: 150; --unit: calc((var(--size) / 470) * 1vmin); } body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #ffefef; } svg { position: fixed; bottom: 0%; width: calc(100 * var(--unit)); height: calc(100 * var(--unit)); } </style> </head> <body translate="no"> <svg viewBox="0 0 493 470" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle class="pupil" cx="301.377" cy="120.203" r="25" fill="black"></circle> <circle class="pupil" cx="410.549" cy="120.203" r="25" fill="black"></circle> <path fill-rule="evenodd" clip-rule="evenodd" d="M259.889 15.0499V70.8143H259.876V221.295L258.4 221.295H256.925V221.306C204.644 222.094 162.506 264.721 162.506 317.189C162.506 317.682 162.51 318.174 162.517 318.664H162.506L162.506 432.262C108.996 416.323 97.8602 285.614 97.5813 232.691C97.589 232.336 97.5928 231.979 97.5928 231.622C97.5928 231.19 97.5872 230.759 97.576 230.33C97.5769 229.247 97.5827 228.202 97.5928 227.196L97.3926 227.176C95.1473 202.372 74.2973 182.937 48.908 182.937C23.6523 182.937 2.88829 202.168 0.460371 226.785C0.379264 226.92 0.300188 227.057 0.223163 227.196C-5.67803 379.447 106.937 458.326 162.506 469.145L397.078 469.145L398.554 469.145V469.134C450.834 468.345 492.973 425.719 492.973 373.25C492.973 372.983 492.972 372.716 492.969 372.449C492.969 372.36 492.968 372.272 492.967 372.183C492.965 372.047 492.964.........完整代码请登录后点击上方下载按钮下载查看
网友评论0