demo记录
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><!--IE=edge告诉IE使用最新的引擎渲染网页,chrome=1则可以激活Chrome Frame -->
<meta name="renderer" content="webkit" /><!--默认内核-->
<meta name="author" content="Tony,田槐旺"><!--作者-->
<meta name="keywords" content="PHP,前端,全栈开发,个人博客"><!--关键词-->
<meta name="description" content="Tony的个人博客,全栈开发,PHP开发"><!--描述-->
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><!–将http的不安全请求升级为https–>-->
<link rel="shortcut icon" href="__PUBLIC__/Home/imgs/author.jpg" />
<title>关于作者</title>
<!--[]>
<script type="text/javascript">
, html5tags = ["header", "footer", "nav", "aside", "article", "section"];
for (i in html5tags) {
document.createElement(html5tags[i]);
}
</script>
<![endif]-->
<!--[]>
<script>window.location.href = "__MODULE__/Ie/ie";</script>
<![endif]-->
<link rel="stylesheet" href="__PUBLIC__/Home/css/base.css"><!--初始化-->
<link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
<link rel="stylesheet" href="__PUBLIC__/Home/css/animate.css">
<link rel="stylesheet" href="__PUBLIC__/font-awesome-4.7.0/css/font-awesome.css">
<style type="text/css">
.hi {
width: 50px;
height: 72px;
background-image: url("http://s.cdpn.io/79/sprite-steps.png");
-webkit-animation: play .8s steps() infinite;
-moz-animation: play .8s steps() infinite;
-ms-animation: play .8s steps() infinite;
-o-animation: play .8s steps() infinite;
animation: play .8s steps() infinite;
}
@-webkit-keyframes play {
from { background-position: 0px; }
to { background-position: -500px; }
}
@-moz-keyframes play {
from { background-position: 0px; }
to { background-position: -500px; }
}
@-ms-keyframes play {
from { background-position: 0px; }
to { background-position: -500px; }
}
@-o-keyframes play {
from { background-position: 0px; }
to { background-position: -500px; }
}
@keyframes play {
from { background-position: 0px; }
to { background-position: -500px; }
}
@-webkit-keyframes typing {
}
to { width:.3em }
}
@-moz-keyframes typing {
}
to { width:.3em }
}
@-webkit-keyframes blink-caret {
from, to { border-color: transparent }
% { border-color: black }
}
@-moz-keyframes blink-caret {
from, to { border-color: transparent }
% { border-color: black }
}
h1 {
width:.3em;
white-space:nowrap;
overflow:hidden;
border-right: .1em solid black;
-webkit-animation: typing 7s steps(, end), /* # of steps = # of characters */
blink-caret 1s step-end infinite;
-moz-animation: typing 7s steps(, end), /* # of steps = # of characters */
blink-caret 1s step-end infinite;
}
.avatar {
height: 200px;
width: 200px;
background: url(http://ww1.sinaimg.cn/large/67c839fajw1f2staqebnxj20nk05wjru.jpg) no-repeat 0 0;
/*visibility: hidden; */
}
.above:hover {
-webkit-animation: run .6s steps() infinite;
/*-webkit-animation: run .6s steps(1) infinite; */
}
.down:hover {
-webkit-animation: run .6s linear infinite;
}
@keyframes run {
% {
background-position: ;
}
% {
background-position: -200px ;
}
% {
background-position: -400px ;
}
% {
background-position: -600px ;
}
% {
background-position: ;
}
}
@keyframes run2 {
% {
background-position: ;
}
% {
background-position: -800px ;
}
}
@-webkit-keyframes tuski {
% {
background-position:;
}
% {
background-position: -576px ;
}
}
@-moz-keyframes tuski {
% {
background-position:;
}
% {
background-position: -576px ;
}
}
@keyframes tuski {
% {
background-position:;
}
% {
background-position: -576px ;
}
}
#tuski {
width: 48px;
height: 48px;
background-image: url(http://acwongblog.qiniudn.com/2015-03_tuski-sprite.png);
background-repeat: no-repeat;
background-position: ;
-webkit-animation: tuski .5s steps() infinite;
-moz-animation: tuski .5s steps() infinite;
animation: tuski .5s steps() infinite;
}
</style>
</head>
<body>
<!--loading page-->
<div class="loader">
<div class="loader-content">
<img src="__PUBLIC__/Home/imgs/loading.gif" alt="Loader" class="loader-loader"/>
</div>
</div>
<!--文档导航-->
<header>
<div class="top-nav">
<span>小田博客-原创个人网站</span>
</div>
<nav>
<ul class="nav">
<li><a class="nav-class" href="__MODULE__/Index/index" title="首页">首页</a></li>
<volist name="navdata" id="vol">
<li class="nav-class">
<a title="{$vol.catename}" href="__MODULE__/Cate/index/id/{$vol.id}">{$vol.catename}</a>
</li>
</volist>
<li><a class="nav-class" href="__MODULE__/Index/item" title="项目展示">项目展示</a></li>
<li><a class="nav-class" href="__MODULE__/Index/author" title="关于作者">关于作者</a></li>
<li><a class="nav-class" href="__MODULE__/Message/index" title="留言板">留言板</a></li>
</ul>
</nav>
</header>
<!--返回顶部-->
<div class="toolbar">
<a href="__MODULE__/Message/index" class="toolbar-item toolbar-item-feedback"></a>
<a href="javascript:;" id="top" class="toolbar-item toolbar-item-top"></a>
</div>
<section>
<h1>Typing animation by Lea Verou.</h1>
<img src="http://s.cdpn.io/79/sprite-steps.png" />
<div class="hi"></div>
<hr>
<h3>tips:鼠标悬停图片上方预览效果</h3>
<p> 使用steps属性控制时间函数</p>
<div class = 'avatar above'></div>
<p> 使用linear控制时间函数</p>
<div class = 'avatar down'></div>
<hr>
<div id="tuski"></div>
<input type=" step="0.5" value="0.5">
<p>拉动滑块调整动画速度</p>
</section>
<!--文档底部-->
<include file="Public/foot"/>
<script src="__PUBLIC__/Home/js/jquery-1.8.3.min.js"></script>
<script src="__PUBLIC__/Home/js/public.js"></script>
<script type="text/javascript">
var range = document.querySelector("#slider");
var tuski = document.querySelector("#tuski");
range.addEventListener("change", function(event){
var value = event.target.value;
tuski.style.webkitAnimationDuration = value + "s";
tuski.style.mozAnimationDuration = value + "s";
tuski.style.animationDuration = value + "s";
});
</script>
</body>
</html>
demo记录的更多相关文章
- 使用Flexible适配移动端html页面 - demo记录
前段时间看了大神的博客文章[使用Flexible实现手淘H5页面的终端适配](地址:http://www.w3cplus.com/mobile/lib-flexible-for-html5-layou ...
- demo 记录 通用方法什么的到这里抄一下
function killerrors() { return true; } window.onerror = killerrors; //检查浏览器类型 function checkBrowser( ...
- 菜单下拉效果demo记录
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content ...
- java8 stream/optional个人测试demo记录
备忘记录 package cc.ash; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConst ...
- 枚举,Enum,常规使用demo记录
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mv ...
- require demo 记录备份
预览地址 http://127.0.0.1:8020/requireDemo/myNEW/index.html 注意 远程的 非模块的 empty: demo2
- 第一个MICO CORBA demo实录
因为忙于其他事情没有仔细去学习CORBA原理,也就大概根据网上的教程搭了一个使用MICO的demo 记录如下. 这里的话,代码我就不贴了,程序也不详细解释了,因为项目文件夹里有一个PPT详细解释了这个 ...
- c#正则表达式最简demo
各个语言的正则表达式规则略有不同 项目中用到,所以将这个最简单的demo记录 using System; using System.Collections.Generic; using System. ...
- 使用SSI框架写的简单Demo(查询模块)
在网上看到好多个版本,自己有时间索性就写个Demo记录下整个框架的逻辑流程: 1.首先拷贝整个框架所需要的jar包到WEB-INF/lib包下(这个网上都可以搜到的) 2.配置文件的配置, 2.1.在 ...
随机推荐
- How to Use DHCP Relay over LAN? - DrayTek Corp
Assuming Vigor2960 has two LAN networks. Network Administrator wants that, when the internal DHCP is ...
- HDU 5311 Hidden String (优美的暴力)
Hidden String Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) ...
- 破解IntelliJ IDEA 2017
一.下载地址 http://www.jetbrains.com/idea/ 二.下载破解jar包 http://idea.lanyus.com/ 2.1 将下载好的jar包放在IDEA的bin文件下 ...
- HDU4689Derangement (动态规划)
题目链接:传送门 题意: 对于一个由1~n组成的长度为n的序列来说它有n!种排法.我们定义初始的排列为1,2,3,...,n对于兴许的排列假设a[i]>i则用'+'表示.a[i]<i用'- ...
- 利用mass storage class 做免驱动usb设备.
当需要使用usb bulk传输,想让设备像串口通讯那样和PC主机通信, 通常需要自己做一个PC端的驱动,比较麻烦. 为避免在pc上编写usb设备驱动的麻烦,可以将设备做成mass storage 类的 ...
- [模板]FWT
写起来和fft很像,这里放个板子. 代码: #include<iostream> #include<cstdio> #include<cmath> #include ...
- openstack instance bootmgr is missing 问题 修复
- PCB Winform使用谷歌webkit内核 应用
我们Winfrom界面嵌入网页最常用的是WebBrowser控件,因为微软自带的,使用方便,但在实际使用起来,会遇到各种麻烦(JS,不兼容问题,渲染等问题) 而实际WebBrowser控件内核是微软的 ...
- E20170623-hm
verbose adj. 冗长的,啰唆的,累赘的; reverse vt. (使) 反转; (使) 颠倒; 掉换,交换; [法] 撤消,推翻; adj. 反面的; ...
- 【BZOJ1483】[HNOI2009]梦幻布丁(平衡树启发式合并+并查集)
题目: BZOJ1483 分析: (这题码了一下午,码了近250行,但是意外跑的比本校各位神仙稍快,特写博客纪念) 首先能看出一个显然的结论:颜色段数只会变少不会变多. 我们考虑用并查集维护区间,对于 ...