css实现鼠标交互光晕走光按钮悬浮点击效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现鼠标交互光晕走光按钮悬浮点击效果代码

代码标签: css 鼠标 交互 光晕 走光 按钮 悬浮 点击

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

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

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap");
body,
html {
  height: 100%;
}
.btn-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}
.glossy-btn {
  border-radius: 124px;
  background: radial-gradient(185.08% 100% at 50% 0%, #dedeff 0%, #e9e9ff 21.35%, #d7d9f8 69.27%, #eff7ff 100%);
  box-shadow: 0px 12.991px 25.983px 0px #dce9fd;
  color: #4042a1;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  padding: 20px 40px;
  text-decoration: none;
  display: inline-block;
  background-size: 100% 100%;
  position: relative;
  transition: 0.4s;
  cursor: pointer;
  overflow: hidden;
}
.glossy-btn:hover {
  background-size: 100% 120%;
  transform: translateY(-4px);
  box-shadow: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0