css实现炫酷图标按钮悬浮走光散光动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现炫酷图标按钮悬浮走光散光动画效果代码

代码标签: css 炫酷 图标 按钮 悬浮 走光 散光 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  overflow: hidden;
}
section {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #ff4f8b, #dff1ff);
}

section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  /*background:#000;*/
  z-index: 1;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
section .color {
  position: absolute;
  filter: blur(150px);
}
section .color:nth-child(1) {
  background: #ff359b;
  width: 500px;
  height: 500px;
  top: -350px;
}
section .color:nth-child(2) {
  background: #00d2ff;
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: 100px;
}
section .color:nth-child(3) {
  background: #fffd87;
  width: 300px;
  height: 300px;
  bottom: 50px;
  right: 150px;
}
ul {
  position: relative;
  display: flex;
  z-index: 2;
}

ul li {
  position: relative;
  list-style: none;
  margin: 10px;
}

ul li a {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 2em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 45px rgba(0, 0, 0, 0.1);
  backdrop-filter: blu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0