好玩的找不到页面设计:html5 svg太空人404动画模板

 

 

复制代码
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>html5 svg太空人404动画模板</title>
 
<style>
html {
  margin: 0;
  padding: 0;
  background-color: white;
}
 
body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
 
#svgContainer {
  width: 640px;
  height: 512px;
  background-color: white;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
</style>
 
</head>
<body>
 
<script type="text/javascript" src="js/bodymovin.js"></script>
<script type="text/javascript" src="js/data.js"></script>
 
<div id="svgContainer"></div>
 
<script type="text/javascript">
var svgContainer = document.getElementById('svgContainer');
var animItem = bodymovin.loadAnimation({
  wrapper: svgContainer,
  animType: 'svg',
  loop: true,
  animationData: JSON.parse(animationData)
});
</script>
 
<div style="text-align:center;margin:10px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
</div>
</body>
</html>
 
复制代码

 

posted @   青山下  阅读(24)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2017-06-26 快速实现兼容的js复制方式。有点非正规,通过非正规的排版实现。
点击右上角即可分享
微信分享提示