js+css实现文本三维螺旋扭曲动画效果代码
代码语言:html
所属分类:动画
代码描述:js+css实现文本三维螺旋扭曲动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');
html, body {
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 900;
font-style: normal;
background:#000;
overflow:hidden;
}
body, pov {
width:100%;
height:100vh;
display: flex;
align-items: center;
justify-content: center;
}
.die {
width: 400px;
height: 55px;
padding-bottom: 9px;
perspective: 999px;
}
.cube {
position: absolute;
width:100%;;
height:100%;
transform-style: preserve-3d;
}
.face {
position: absolute;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
/* letter-spacing:-1px; */
backface-visibility: hidden;
/* overflow:hidden; */
}
</style>
</head>
<body translate="no">
<div class="pov">
<div class="tray">
<div class="die">
<div class=&qu.........完整代码请登录后点击上方下载按钮下载查看
网友评论0