纯css实现三维立方体图文幻灯片切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:纯css实现三维立方体图文幻灯片切换效果代码,可上下左右三维翻转。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<style>
*,
*::before,
*::after {
box-sizing: border-box;
font-family: "Poppins", sans-serif;
transform-style: preserve-3d;
}
body,
html {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-size: 12pt;
line-height: 18pt;
font-weight: 400;
color: white;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
overflow: hidden;
background: #444;
margin: 0;
}
.container-3D {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 300px;
height: 300px;
}
.flopper {
position: relative;
width: auto;
height: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: visible;
transition: all 0.5s ease-in-out;
/*animation: rotate 6s linear infinite;*/
}
figure {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
width: 300px;
height: 300px;
transform-orig.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0