div+css实现中性表情按钮点击效果代码

代码语言:html

所属分类:其他

代码描述:div+css实现中性表情按钮点击效果代码

代码标签: div css 中性 表情 按钮 点击

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

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

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

  
  
  
<style>
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.container {
  background-color: #e0e5ec;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  user-select:none;
}
.container .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s box-shadow ease-in-out;
  min-width: 12rem;
  min-height: 12rem;
  cursor: pointer;
  border-radius: 25%;
  box-shadow: -8px -8px 20px 0px #fff9, -6px -6px 6px 0px #fff9,
    8px 8px 20px 0px #0001, 5px 5px 6px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001;
  margin: 0 2rem;
}
.container .button span {
  transition: 0.15s font-size ease-in-out;
  font-size: 5.5rem;
  opacity: .8;
}
.container .button--active {
  box-shadow: 0px 0px 0px 0px #.........完整代码请登录后点击上方下载按钮下载查看

网友评论0