css实现文本上下三维滚动动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文本上下三维滚动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
body {
font-family: 'Lucida Grande', Verdana, Arial;
font-size: 12px;
background: turquoise;
}
#stage {
margin: 150px auto;
width: 300px;
height: 200px;
position: relative;
/* Setting the perspective of the contents of the stage
but not the stage itself */
-webkit-perspective: 800;
}
#rotate {
margin: 0 auto;
width: 300px;
height: 200px;
/* Ensure that we're in 3D space */
-webkit-transform-style: preserve-3d;
}
.ring {
margin: 0 auto;
height: 55px;
width: 400px;
-webkit-transform-style: preserve-3d;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
#stage:after {
display: block;
content: '';
position: absolute;
left: 0;
right: 0;
top: -80px;
bottom: 70px;
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#40e0d.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0