TweenMax+turn实现点击打开书本翻书翻页效果代码

代码语言:html

所属分类:其他

代码描述:TweenMax+turn实现点击打开书本翻书翻页效果代码

代码标签: TweenMax turn 点击 打开 书本 翻书 翻页

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    @import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400&display=swap");
/** Theme **/
/** Dimensions **/
/** Font Sizes **/
/** mixins **/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #2F2F2F;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container .hint {
  position: absolute;
  bottom: 25px;
  color: #D9D9D9;
}
.container .mobile {
  width: 280px;
  height: 450px;
  padding: 15px;
}
.container .mobile .content {
  position: relative;
  width: calc(280px - (2 * 15px));
  height: calc(450px - (2 * 15px));
  border-radius: 10px;
  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06), 0 22.3px 17.9px rgba(0, 0, 0, 0.072), 0 41.8px 33.4px rgba(0, 0, 0, 0.086), 0 100px 80px rgba(0, 0, 0, 0.12);
  background-color: #fff;
  overflow: hidden;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.container .mobile .content .book {
  position: relative;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .mobile .content .book .cover {
  position: absolute;
  width: 150px;
  height: 225px;
  background-image: url("//repo.bfw.wiki/bfwrep.........完整代码请登录后点击上方下载按钮下载查看

网友评论0