gpt4 book ai didi

html - css中的曲线形状纸

转载 作者:行者123 更新时间:2023-11-28 05:26:15 25 4
gpt4 key购买 nike

我需要翻页动画效果加载屏幕。我需要曲线形状的纸,比如像书上那样的附加图像。

在我的论文中像矩形如何制作固化形状的纸

enter image description here

我将这张图片设置为背景 bub 我需要那样的纸

.paperfixed {
position: absolute;
width: 43%;
background-color: #a92929;
height: 85%;
z-index: 0;
margin: 0px;
left: 4px;
top: 6px;
}
.cssload-thecube {
width: 92px;
height: 66px;
margin: auto auto;
position: relative;
background-color: #000;
border-radius: 8px;
}
.cssload-thecube .cssload-cube {
position: relative;
}
.cssload-thecube .cssload-cube {
float: left;
width: 51%;
height: 52%;
position: relative;
transform: scale(1.1);
-o-transform: scale(1.1);
-ms-transform: scale(1.1);
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
}
.cssload-thecube .cssload-cube:before {
content: "";
position: absolute;
top: -37px;
left: 12px;
width: 100%;
height: 100%;
background-color: #e8cfcf;
animation: cssload-fold-thecube 1s infinite linear both;
-o-animation: cssload-fold-thecube 1s infinite linear both;
-ms-animation: cssload-fold-thecube 1s infinite linear both;
-webkit-animation: cssload-fold-thecube 1s infinite linear both;
-moz-animation: cssload-fold-thecube 1s infinite linear both;
transform-origin: 100% 100%;
-o-transform-origin: 100% 100%;
-ms-transform-origin: 100% 100%;
-webkit-transform-origin: 100% 100%;
-moz-transform-origin: 100% 100%;
}
.cssload-thecube .cssload-c2 {
transform: scale(1.1) rotateZ(90deg);
-o-transform: scale(1.1) rotateZ(90deg);
-ms-transform: scale(1.1) rotateZ(90deg);
-webkit-transform: scale(1.1) rotateZ(90deg);
-moz-transform: scale(1.1) rotateZ(90deg);
}
@keyframes cssload-fold-thecube {
0%, 50% {
transform: perspective(-180deg) rotateX(-136px);
opacity: 0;
}
50%,
100% {
transform: perspective(136px) rotateX(-180deg);
opacity: 1;
}
}
.book-bg {
background-color: rgba(0, 0, 0, 0.8);
display: block;
width: 100%;
height: 100%;
}
<div class="book">
<div class="cssload-thecube">
<div class=""></div>
<div class="cssload-cube cssload-c2"></div>
</div>
<h5>Loading . . .</h5>
</div>

最佳答案

我已经稍微看了一下这个,你应该给你一些创建 flex 页面的方法的想法。

这确实需要纯色背景来创建底部页面曲线。希望你觉得这有帮助。

.book {
width: 120px;
margin: 40px;
font-size: 0;
}
.page {
display: inline-block;
width: 60px;
height: 80px;
position: relative;
}
.page:before, .page:after {
content: "";
display: block;
width: 100%;
height: 14px;
border-radius: 50%;
position: absolute;

}
.firstPage:before {
background: #a92929;
top: -7px;
}
.secondPage:before {
background: red;
top: -7px;
}
.page:after {
background: #fff;
bottom: -7px;
}
.firstPage {
background: #a92929;
}
.secondPage {
background: red;
}
<div class="book">
<div class="page firstPage"></div>
<div class="page secondPage"></div>
</div>

关于html - css中的曲线形状纸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38761347/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com