鼠标悬浮拖动模糊变清晰圈交互效果代码

代码语言:html

所属分类:悬停

代码描述:鼠标悬浮拖动模糊变清晰圈交互效果代码

代码标签: 模糊 清晰 交互 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  background: #36f;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.container {
  position: relative;
  box-shadow: inset 0 0 2px 1em rgba(0, 0, 0, 0.5), 0 4px 1em rgba(0, 0, 0, 0.5);
  width: 90%;
  height: 90%;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  background-image: url("//repo.bfw.wiki/bfwrepo/image/5eed54b8d8b86.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  -webkit-filter: blur(4px);
          filter: blur(4px);
}
.image::before {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  content: "";
  height: 100%;
  width: 100%;
}

.cursor {
  position: absolute;
  ba.........完整代码请登录后点击上方下载按钮下载查看

网友评论0