css实现跟随鼠标一直盯着你的chrome图标眼睛效果代码

代码语言:html

所属分类:其他

代码描述:css实现跟随鼠标一直盯着你的chrome图标眼睛效果代码

代码标签: css 跟随 鼠标 盯着 chrome 眼睛

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  
<style>
#wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(27, 148, 66, 1) 0%,
    rgba(27, 148, 66, 1) 50%,
    rgba(255, 190, 0, 1) 50%,
    rgba(255, 190, 0, 1) 100%
  );
  /*   background: lightgrey; */
}
#eyeObj {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
}
.eye {
  position: absolute;
  width: 33%;
  height: 33%;
  left: 0%;
  top: 0%;
  transform: translate(-50%, -50%);
  background-color: #0078ec;
  border: 10px solid white;
  border-radius: 50%;
}
.wing {
  position: absolute;
  width: 400%;
  height: 400%;
  left: 0%;
  top: 0%;
  transform: translate(-50%, -50%) rotate(10deg);
  background-color: #e13b26;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 46%, 45% 50%);
          clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 46%, 45% 50%);
}
.wing:nth-of-type(2) {
  transform: translate(-50%, -50%) rotate(130deg);
  background-color: #ffbe00;
  /*     display: none; */
}
.wing:nth-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0