Html--动画--西游记

效果:
在这里插入图片描述
素材:
百度云链接:链接:https://pan.baidu.com/s/1O523Ul9VmsoLEWOz0eEqfA
提取码:l47o
代码展示:
`

<html>
	<head>
    
    <EMBED src="C:\Users\Administrator\Desktop\6.mp3" autostart="true" loop="true" width="0" height="0">
	<meta charset='UTF-8'>
	<title>西游记</title>
	<meta name='Keywords' content=''>
	<meta name='Description' content=''>
	<style type="text/css">

		body{
			margin: 0px;
			background-image: url('images/bg.jpg');
			animation: body 1200s infinite;
		}
		.list{
			width: 800px;
			height: 150px;
			margin: auto;
			margin-top: 400px;

		}
		.list div{
			float :left;
			width: 190px;
			height: 150px;
		}
		.list .list-1{/* 后代选择器 */
			
			background-image: url('images/1.png');
			animation: run 1s steps(8) infinite;
			z-index: 1;
		}
		.list .list-2{/* 后代选择器 */
			
			background-image: url('images/2.png');
			animation: run 1s steps(8) infinite;
			z-index: 1;

		}
		.list .list-3{/* 后代选择器 */
		
			background-image: url('images/3.png');
			animation: list-3 1s steps(8) infinite;
			z-index: 1;
		}
		.list .list-4{/* 后代选择器 */
			
			background-image: url('images/4.png');
			animation: list-4 1s steps(8) infinite;
			z-index: 1;
		}
			@keyframes body{
			from{
				background-position: 0 0;
			}
			to{
				background-position: 108000px 0;
			}
		}
		@keyframes list-3{
			from{
				background-position: 0 0;
			}
			to{
				background-position: -1360px 0;
			}
		}
		@keyframes list-4{
			from{
				background-position: 0 0;
			}
			to{
				background-position: -1680px 0;
			}
		}
		@keyframes run{
			from{
				background-position: 0 0;
			}
			to{
				background-position: -1600px 0;
			}
		}

	</style>

</head>
<body>
	<div class='list'>
		<div class='list-1'></div>
		<div class='list-2'></div>
		<div class='list-3'></div>
		<div class='list-4'></div>
	</div>
	
</body>
</html>

需要把下载的都放到桌面上,然后把音乐路径改了。

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值