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.在 ...
随机推荐
- ORA-00600: internal error code, arguments: [kkqtSetOp.1]
新数据库从32升级到64位的11G 11 2 0 3 有条SQL 语句运行的时候会导致内部错误. 使用PL/SQL DEVELOPER 查询该语句的运行机会 按F5键 就激发了这个ORA600 单击此 ...
- Spark SQL CLI 实现分析
背景 本文主要介绍了Spark SQL里眼下的CLI实现,代码之后肯定会有不少变动,所以我关注的是比較核心的逻辑.主要是对照了Hive CLI的实现方式,比較Spark SQL在哪块地方做了改动,哪些 ...
- JAVA实现RSA加密解密 非对称算法
首先RSA是一个非对称的加密算法.所以在使用该算法加密解密之前,必须先行生成密钥对.包含公钥和私钥 JDK中提供了生成密钥对的类KeyPairGenerator,实比例如以下: public stat ...
- poj-1635 Subway tree systems(推断两个有根树是否同构)-哈希法
Description Some major cities have subway systems in the form of a tree, i.e. between any pair of st ...
- caffe to tensorflow alexnet model
from kaffe.tensorflow import Network class AlexNet(Network): def setup(self): (self.feed('data') .co ...
- 3.4 目录和spooling
文件管理部分主要讲文件目录.文件目录它是用于检索文件的.文件目录它是一种文件系统实现按0存取的一种重要手段.一个文件目录它由若干个目录项组成的.每一个目录项它记录了一个文件的相关信息.这个文件信息指明 ...
- Sort List 典型链表
https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space ...
- androd基础入门---1环境
1.项目结构特性 2.模拟器设置 3.编译器的下载 直接点击运行即可
- IE下a标签会触发window.onbeforeunload的问题
今天同事发现一个问题,在我做的控件中,点击tab切换的时候,IE上会触发他页面上的onbeforeunload的事件.一开始以为是我控件上事件导致的,但是当我把所有的绑定事件取消以后,问题依然存在.我 ...
- Django day32 跨域问题,创建vue项目,axios的使用
一:跨域问题 1.同源策略(浏览器的安全策略) 只允许当前页面朝当前域下发请求,如果向其他域发请求,请求可以正常发送,数据也可以拿回,但是被浏览器拦截了 2.cors:只要服务器实现了CORS,就可以 ...