爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
文字特殊效果
文字特殊效果
日期:2014-05-18 浏览次数:20269 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <style type="text/css"> <!-- body {background: url(back.gif);} .sample {font-style: italic; font-family: arial black; font-size: 40px; font-weight: bold; cursor: hand;} #backgr2 {width: 200px; height: 70; background: black url(images/back1.jpg) center center no-repeat;} #backgr3 {} --> </style> <div class="webfx-main-body"> <h2>3D Text</h2> This was made using one span with blur and then another one atop of it. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);" >WebFX</span><span class="sample" style="position: relative; left: -201; top: -15; width: 200; color: #2984ff;"> WebFX</span> <h2>Glass Text</h2> Same tecnique as above but both have alpha filters added. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: lightskyblue; filter: Alpha(Opacity=60) Blur(Add=0, Direction=135, Strength=20);" >WebFX</span><span class="sample" style="position: relative; left: -201; top: -15; width: 200; color: lightskyblue; filter: Alpha(Opacity=60);" >WebFX</span> <h2>Inner Shadow</h2> First I added a mask() to remove the inside, then a shadow() was added. Since there is nothing inside the shadow is displayed inside. Then I removed the mask using chroma(). Before this I added the same text with a white color and the second text was moved above this using position: relative; left: -200px; <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: white;" >WebFX</span><span class="sample" style="width: 200px; height: 70; position: relative; left: -200; filter: mask(color=red) shadow(direction=135) chroma(color=red);" >WebFX</span> <h2>Outline Text</h2> You could just add glow but it looks better if the glowing is placed on the inside. To do this you add mask, glow and chroma. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; filter: mask(color=red) glow(color=black, strength=1) chroma(color=red);">WebFX</span> </div> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字的随机伸缩变化
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
网友爆料称微软雇水军宣传主机Xbox One
特斯拉将获上海免费牌照 充电桩面临双重标准
虚拟运营商前路迷茫 业界建议发力车联网
HDS发布《2013中国CIO洞察白皮书》
FB上广告费用昂贵而且效果不及Twitter
QQ空间与微信龟兔赛跑,商业生态链陷入死循环
微信收费形式三选一 腾讯或变身运营商
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
推荐阅读
更多>
中移动业绩增长趋缓 目光转向海外市场
TD是完成中国梦的一个契机
中方抗议美方限购IT设备 紧张关系加剧
富士康人事故骚动方寸 不惜血本下注电商
工信部或本月17日向联通电信颁发FDD牌照
百度透露无人驾驶战略 研发三维交通地图
乐视今日临时停牌 受广电酝酿新规消息影响
扎克伯格华裔妻子首度亮相电视节目畅谈情史
总部大楼已换微软Logo:回忆诺基亚的兴衰史
中国首台比特币ATM登陆上海 可购买不可兑换现钞
英特尔VS苹果:移动芯片大战
中国大陆人口13.7亿 光棍越来越多
易信工具性优势突出 丁磊三板斧或先砍在飞信上
200美元英特尔Android笔记本行将到来
携程整合去哪儿陷入僵局 欲联手老对手艺龙
地图导航骤起杀机 百度高德重新定义商业模式
Line风靡亚洲,在北美却进展缓慢
猎豹移动上市押海外市场 与小米有合作空间
谷歌新技术进入iOS平台:将叫板苹果Siri
苏宁易购成世界最慢电商 专家称其涉嫌违约