div+css实现炫酷按钮悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现炫酷按钮悬浮动画效果代码

代码标签: div css 炫酷 按钮 悬浮 动画

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

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

<head>
   
<meta charset="UTF-8">
<style>
    body {
  background-color: #1d1f20;
  display: grid;
  height: 100vh;
  align-content: center;
  justify-content: center;
  font-family: Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

.container-buttons {
  width: 50vw;
  justify-content: center;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-gap: 50px;
}

.button {
  width: 100px;
  height: 40px;
  cursor: pointer;
  position: relative;
  display: grid;
}
.button span {
  margin: auto;
  font-weight: 600;
  display: block;
  font-size: 1em;
}

/*****BUTTON BOUNCE*****/
.container-button {
  cursor: pointer;
}
.container-button:hover .button {
  animation: buttonAnimation 0.7s cubic-bezier(0.17, 0.67, 0.72, 1.53);
}
.container-button .b.........完整代码请登录后点击上方下载按钮下载查看

网友评论0