18168733823 在线客服 意见反馈 返回顶部
行业动态 技术分享

企业建站分享之设计模块动画

2019-12-31 分享

效果展示

苏州企业网站建设

页面

<div class="center-html-ui">
    <div class="row">
        <div class="col col-12 height-100vw uigradients">
            <div class="center-block push-middle push-center">
                <div class="top-two-round">
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                </div>
                <div class="word-tittle">
                    <h1>40°<small>hot!</small></h1>
                </div>
                <div class="hot  offset-6 text-right">
                    <p>I think I'm Sooooo Handsome<br>??Qi</p>
                </div>
                <div class="top-three-round">
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                </div>
                <div class="top-four-round">
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                    <div class="col-6-f left-10"></div>
                </div>
                <div class="bottom-cop">
                    Qi Chaoren / 2017/10/21
                </div>
            </div>
        </div>
    </div>
</div>
<div class="border-radius-1"></div>
<div class="border-radius-2"></div>
<div class="border-radius-3"></div>
<div class="border-radius-4"></div>
<div class="border-radius-5"></div>

css

html {
	width:100%;
	height:100%;
}
body {
	overflow:hidden;
	position:relative;
	min-width:344px;
}
.height-100vw {
	height:100vh;
}
.width-100vw {
	width:100vw;
}
.center-html-ui {
	background:#000;
}
.uigradients {
	background:#60ffd3;
	background:-webkit-linear-gradient(to right top,#6fa2ff,#60ffd3);
	background:linear-gradient(to right top,#6fa2ff,#60ffd3);
}
.center-block {
	width:344px;
	height:500px;
	margin-top:0vh;
	background:none;
	box-shadow:15px 15px 60px #44abad;
	border-radius:15px;
	overflow:hidden;
	position:relative;
	background:#60ffd3;
	background:-webkit-linear-gradient(to left bottom,#6fbaff,#60ffd3);
	background:linear-gradient(to left bottom,#60ffd3,#6fbaff);
}
.top-two-round {
	width:400%;
	position:absolute;
	left:-92%;
	top:-26%;
	animation:left-right-go 6s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
	z-index:100;
}
.top-two-round .col-6-f {
	width:25%;
	float:left;
}
.left-10 {
	margin-left:-10%;
	background:#60ffd3;
	background:-webkit-linear-gradient(to left bottom,#d4ffd2,#d4ffd2);
	background:linear-gradient(to left bottom,#d4ffd2,#d4ffd2);
}
.top-two-round div {
	border-radius:50%;
	height:300px;
	background:#80ffe3;
}
.top-three-round {
	width:500%;
	position:absolute;
	left:-92%;
	top:-5%;
	animation:left-right-go-3 4s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
	z-index:50;
}
.top-three-round .col-6-f {
	width:25%;
	float:left;
}
.top-three-round div {
	border-radius:50%;
	height:300px;
	background:#beff85;
}
.top-four-round {
	width:380%;
	position:absolute;
	right:-92%;
	top:-5%;
	animation:left-right-go-4 5s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
	z-index:10;
}
.top-four-round .col-6-f {
	width:28%;
	float:left;
}
.top-four-round div {
	border-radius:50%;
	height:300px;
	background:#acddff;
}
.border-radius-1 {
	width:15px;
	height:15px;
	border-radius:10px;
	background:#fff;
	position:absolute;
	left:10%;
	top:5%;
	box-shadow:0px 0px 10px #fff;
	animation:top-down-go 6s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
	filter:url(blur.svg#blur);
	-webkit-filter:blur(3px);
	-moz-filter:blur(3px);
	-ms-filter:blur(3px);
	filter:blur(3px);
	filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10,MakeShadow=false);
}
.border-radius-2 {
	width:10px;
	height:10px;
	border-radius:25px;
	background:#fff;
	position:absolute;
	bottom:10%;
	right:20%;
	box-shadow:0px 0px 10px #fff;
	filter:url(blur.svg#blur);
	-webkit-filter:blur(3px);
	-moz-filter:blur(3px);
	-ms-filter:blur(3px);
	filter:blur(3px);
	filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10,MakeShadow=false);
	/* IE6~IE9 */
}
.border-radius-3 {
	width:8px;
	height:8px;
	border-radius:25px;
	background:#fff;
	position:absolute;
	bottom:15%;
	left:20%;
	box-shadow:0px 0px 10px #fff;
	filter:url(blur.svg#blur);
	-webkit-filter:blur(3px);
	-moz-filter:blur(3px);
	-ms-filter:blur(3px);
	filter:blur(3px);
	filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10,MakeShadow=false);
	/* IE6~IE9 */
}
.border-radius-4 {
	width:30px;
	height:30px;
	border-radius:25px;
	background:#fff;
	position:absolute;
	top:20%;
	right:6%;
	box-shadow:0px 0px 10px #fff;
	filter:url(blur.svg#blur);
	-webkit-filter:blur(10px);
	-moz-filter:blur(10px);
	-ms-filter:blur(10px);
	filter:blur(10px);
	filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10,MakeShadow=false);
	/* IE6~IE9 */
}
.border-radius-5 {
	width:9px;
	height:9px;
	border-radius:25px;
	background:#fff;
	position:absolute;
	top:30%;
	right:26%;
	box-shadow:0px 0px 10px #fff;
}
.border-radius-1,.border-radius-3,.border-radius-5 {
	animation:top-down-go 6s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
}
.border-radius-4 {
	animation:top-down-go-1 12s;
	animation-iteration-count:infinite;
	animation-timing-function:cubic-bezier(0,0,0,0);
}
@media (max-width:768px) {
	.center-block {
	margin:30vw auto;
	width:344px;
	height:500px;
}
.word-tittle {
	position:absolute;
	top:2.5vw;
	left:3%;
	z-index:999;
}
.hot p {
	margin-top:2vw;
	font-size:18px;
	color:#fff;
}
/*    .border-radius-1,.border-radius-2,.border-radius-3,.border-radius-4,.border-radius-5 {
	display:none;
}
*/}@keyframes left-right-go {
	0% {
	left:-92%;
	top:-33%;
}
25% {
	left:-80%;
	top:-33%;
}
50% {
	left:-68%;
	top:-33%;
}
75% {
	left:-56%;
	top:-33%;
}
100% {
	left:-32%;
	top:-33%;
}
}@keyframes left-right-go-3 {
	0% {
	left:-92%;
	top:-25%;
}
25% {
	left:-74.5%;
	top:-25%;
}
50% {
	left:-59%;
	top:-25%;
}
75% {
	left:-43%;
	top:-25%;
}
100% {
	left:-16%;
	top:-25%;
}
}@keyframes left-right-go-4 {
	0% {
	right:-192%;
	top:-12%;
}
25% {
	right:-172%;
	top:-12%;
}
50% {
	right:-152%;
	top:-12%;
}
75% {
	right:-132%;
	top:-12%;
}
100% {
	right:-122%;
	top:-12%;
}
}@keyframes top-down-go {
	0% {
	margin-left:0;
	margin-top:0;
}
25% {
	margin-left:10px;
	margin-top:30px;
}
50% {
	margin-left:30px;
	margin-top:90px;
}
75% {
	margin-left:10px;
	margin-top:20px;
}
100% {
	margin-left:0;
	margin-top:0;
}
}@keyframes top-down-go-1 {
	0% {
	left:-200px;
	top:10px;
}
25% {
	left:2vw;
	top:10vw;
}
50% {
	left:40vw;
	top:70vw;
}
75% {
	left:55vw;
	top:120vw;
}
100% {
	left:80vw;
	top:190vw;
}
}.word-tittle {
	position:absolute;
	top:2.5vw;
	left:3%;
	z-index:999;
}
.word-tittle h1 {
	font-size:85px;
	color:#fff;
	font-weight:100;
}
.word-tittle h1 small {
	font-size:15px;
	position:relative;
	left:-30px;
	color:#fff;
}
.hot {
	position:absolute;
	z-index:999;
	right:6%;
	width:50%;
}
.hot p {
	margin-top:2vw;
	font-size:18px;
	color:#fff;
}
.bottom-cop {
	position:absolute;
	bottom:3%;
	right:3%;
	font-size:12px;
	color:#d4f7fd;
	z-index:5;
	letter-spacing:8px;
}
在线咨询
Copyright © 2019 江苏如斯镁科技有限公司 版权所有 苏ICP备19052370号-3   友情链接: 在线商城 网站地图