天空飘来五个字
2014-07-11 18:48
169 查看
html
js with jQuery
<p id="content" style="font-size:25px;height:25px;letter-spacing:5px;padding:10px 20px;background-color:#0aa;">天空飘来五个字,那都不是事!</p>
js with jQuery
// 小效果,天空飘来五个字 var showWordOneByOne = function (target) { var text = target.text(), arrStr = text.split(""); tId = null word = ""; target.text(""); tId = setTimeout(function setWord() { word = arrStr.shift(); target.append(word); if (arrStr.length > 0) { tId = setTimeout(setWord, 200); } }, 700); }; showWordOneByOne($("#content"));
相关文章推荐
- GDC2017 把“现实的天空”在游戏内再现【Forza Horizon 3】的天空表现
- 【CQ Training 2014 Day3】燃烧的天空
- DirectX11 使用Cube Mapping 立方体环境贴图实现天空、物体反射效果
- 口袋的天空
- 005-unity3d 添加背景音乐、音效 以及 天空盒子
- 夜晚的天空为什么是黑的?
- 净化CSDN Blog这片天空
- 美丽的天空
- 天空的颜色和大气散射
- Photoshop简单修饰使照片天空更靓丽
- 除了互联网,还有另外一片天空
- 我的天空程序更新了!
- 一键钟情 v1.23 天空注册版 怎么用
- 破解还原卡的方法总结!! - Kevins的天空 - CSDNBlog
- 你在天空飞翔,我在地面游荡,看似两个地方,其实都是一样
- “留白”教学——留出一方蔚蓝的天空
- 在CSDN混了很久了,一直是潜水状态,今天我决定打理这片天空
- 当记忆已经冻结,天空依然飘雪
- 蓝蓝的天空
- 蓝天白云何在?国外的天空分外蓝,外国的月亮更加圆?真实与谎言