css实现书架效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现书架效果代码

代码标签: css 书架

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
*, *::before, *::after {
  margin: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  content: "";
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #dbfff9;
  transform: scale(1.5);
}

.books-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bookend {
  height: 55px;
  width: 10px;
  background-color: #7ab1fd;
}
.bookend::after {
  content: "";
  display: flex;
  height: 10px;
  width: 33px;
  background-image: linear-gradient(to bottom, #5796e9 30%, #7ab1fd 30%);
  background-color: #7ab1fd;
  transform: translateX(-33px) translateY(45.2px);
}

.book {
  height: 83px;
  width: 25px;
  border-radius: 2px;
}

.book1 {
  height: 95.45px;
  border-top-left-radius: 1px;
  border-bottom-left-radius: 1px;
  background-image: linear-gradient(to right, #ffcbf5 0 50%, #ffe1fa 50% 40%);
}
.book1::before {
  content: "";
  display: flex;
  border-top: 14px double #ff92c9;
  height: 12.5px;
  transform: translateY(10px);
}
.book1::after {
  content: "";
  display: flex;
  border-top: 14px double #ff92c9;
  height: 12.5px;
  transform: translateY(60px);
}

.book2 {
  width: 20px;
  background-image: linear-gradient(to right, #ffd787 0 50%, #ffef91 50% 40%);
}
.book2::before {
  content: "";
  display: flex;
  border-top: 14px double #7ab1fd;
  height: 5px;
  transform: translateY(61.5px) translateX(0px);
}
.book2::after {
  content: "";
  display: flex;
  border-top: 14px double #7ab1fd;
  height: 5px;
  transform: translateY(-6px) translateX(0);
}

.book3 {
  position: relative;
  z-index: 3;
  height: 89.64px;
  justify-content: space-around;
  background.........完整代码请登录后点击上方下载按钮下载查看

网友评论0