css带三维阴影悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:css带三维阴影悬浮动画效果代码

代码标签: css 三维 阴影 悬浮 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">

<style>

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #53d9d1;
}

.container {
  width: 400px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

button {
  outline: 0;
  border: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
}

.button {
  padding: 15px;
  color: white;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #f27b9b;
  background: linear-gradient(to right, #f27b9b 70%, #eb7132);
  transition: transform 0.2s cubic-bezier(0, 0, 0.7, 1);
}
.button:before {
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  width: 98%;
  height:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0