PROMULGATOR

    四川省绵阳市
    o(╯□╰)o到头了
    Html
    Css
    Js


* {
	margin:0;
	padding:0;
}
body {
	overflow:hidden;
	perspective:2000px;
}
ul {
	position:relative;
	width:400px;
	height:400px;
	margin:100px auto;
	list-style:none;
	transform-style:preserve-3d;
	transform:rotateX(-10deg) rotateY(0deg);
	animation:flash 12s linear infinite 1.2s;
}
ul:hover {
	animation-play-state:paused;
}
ul li {
	font-size:52px;
	text-align:center;
	line-height:400px;
	color:#fff;
	width:100%;
	height:100%;
	position:absolute;
	top:50%;
	left:50%;
	transition:all 0.2s ease;
}
ul li:hover {
	width:450px;
	height:450px;
	top:40%;
}
ul li:nth-child(1) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px) translateX(-50%) translateY(-50%);
	background:lightslategrey;
	animation:flash1 1.3s ease forwards;
}
ul li:nth-child(2) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px) translateX(-50%) translateY(-50%);
	background:darkslateblue;
	animation:flash2 1.3s ease forwards;
}
ul li:nth-child(3) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:darkseagreen;
	animation:flash3 1.3s ease forwards;
}
ul li:nth-child(4) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:slateblue;
	animation:flash4 1.3s ease forwards;
}
ul li:nth-child(5) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:saddlebrown;
	animation:flash5 1.3s ease forwards;
}
ul li:nth-child(6) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:salmon;
	animation:flash6 1.3s ease forwards;
}
ul li:nth-child(7) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:sandybrown;
	animation:flash7 1.3s ease forwards;
}
ul li:nth-child(8) {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
	background:seagreen;
	animation:flash8 1.3s ease forwards;
}
@keyframes flash {
	from {
	transform:rotateX(-10deg) rotateY(0deg);
}
to {
	transform:rotateX(-10deg) rotateY(360deg);
}
}@keyframes flash1 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(45deg) translateZ(600px);
}
}@keyframes flash2 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(90deg) translateZ(600px);
}
}@keyframes flash3 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(135deg) translateZ(600px);
}
}@keyframes flash4 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
}@keyframes flash5 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(225deg) translateZ(600px);
}
}@keyframes flash6 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(270deg) translateZ(600px);
}
}@keyframes flash7 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(315deg) translateZ(600px);
}
}@keyframes flash8 {
	from {
	transform:translateX(-50%) translateY(-50%) rotateY(180deg) translateZ(600px);
}
to {
	transform:translateX(-50%) translateY(-50%) rotateY(360deg) translateZ(600px);
}
}

↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
?立即下载

CSS3旋转照片墙

更新时间:2019-08-31 00:23:13

0