css实现文字穿梭与折叠面动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字穿梭与折叠面动画效果代码,鼠标移动,折叠面三维转动。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
@-webkit-keyframes move {
to {
text-indent: -140px;
}
}
@-moz-keyframes move {
to {
text-indent: -140px;
}
}
@-o-keyframes move {
to {
text-indent: -140px;
}
}
@keyframes move {
to {
text-indent: -140px;
}
}
body {
margin: 0;
padding: 0;
overflow: hidden;
background: #353535;
font-family: "Open Sans", sans-serif;
font-size: 1.4em;
}
body .perspective {
position: absolute;
top: 0;
bottom: 0;
width: 2%;
}
body .perspective:nth-child(1) {
left: 0%;
}
body .perspective:nth-child(1):hover ~ .wrap {
-webkit-perspective-origin: 250%;
-ms-perspective-origin: 250%;
perspective-origin: 250%;
}
body .perspective:nth-child(2) {
left: 2%;
}
body .perspective:nth-child(2):hover ~ .wrap {
-webkit-perspective-origin: 234%;
-ms-perspective-origin: 234%;
perspective-origin: 234%;
}
body .perspective:nth-child(3) {
left: 4%;
}
body .perspective:nth-child(3):hover ~ .wrap {
-webkit-perspective-origin: 226%;
-ms-perspective-origin: 226%;
perspective-origin: 226%;
}
body .perspective:nth-child(4) {
left: 6%;
}
body .perspective:nth-child(4):hover ~ .wrap {
-webkit-perspective-origin: 218%;
-ms-perspective-origin: 218%;
perspective-origin: 218%;
}
body .perspective:nth-child(5) {
left: 8%;
}
body .perspective:nth-child(5):hover ~ .wrap {
-webkit-perspective-origin: 210%;
-ms-perspective-origin: 210%;
perspective-origin: 210%;
}
body .perspective:nth-child(6) {
left: 10%;
}
body .perspective:nth-child(6):hover ~ .wrap {
-webkit-perspective-origin: 202%;
-ms-perspective-origin: 202%;
perspective-origin: 202%;
}
body .perspective:nth-child(7) {
left: 12%;
}
body .perspective:nth-child(7):hover ~ .wrap {
-webk.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0