纯css悬停拉帘效果

代码语言:html

所属分类:悬停

代码描述:纯css悬停拉帘效果

代码标签: 拉帘 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet">
<style>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: #d99058;
  background-image: linear-gradient(315deg, #d99058 0%, #f8de7e 74%);
  z-index: -1;
  transition: 850ms;
}

.btn {
  width: 160px;
  height: 50px;
  position: relative;
  -we.........完整代码请登录后点击上方下载按钮下载查看

网友评论0