DDR爱好者之家 Design By 杰米
本文为大家分享一款基于纯CSS3的文字发光特效,当我们将鼠标滑过文字时,文字就会模拟发光动画,展现出非常酷的发光画面。另外,由于引用了特殊字体,所以整个文字效果看起来有着3D立体的特效,如果你的网络无法加载这些字体,可能是由于国外的这个网站被墙的缘故,就像google的字体库网址被屏蔽那样。
HTML代码
XML/HTML Code复制内容到剪贴板- <div id="container">
- <p><a href="#">
- RED
- </a></p>
- <p><a href="#">
- BLUE
- </a></p>
- <p><a href="#">
- Yellow
- </a></p>
- <p><a href="#">
- GREEN
- </a></p>
- <p><a href="#">
- ORANGE
- </a></p>
- <p><a href="#">
- VIOLET
- </a></p>
- </div>
CSS代码
CSS Code复制内容到剪贴板- /*setup*/
- *{
- margin: 0;
- padding: 0;
- }
- @font-face {
- font-family: 'Monoton';
- font-style: normal;
- font-weight: 400;
- src: local('Monoton'), local('Monoton-Regular'), url(http://themes.googleusercontent.com/static/fonts/monoton/v4/AKI-lyzyNHXByGHeOcds_w.woff) format('woff');
- }
- @font-face {
- font-family: 'Iceland';
- font-style: normal;
- font-weight: 400;
- src: local('Iceland'), local('Iceland-Regular'), url(http://themes.googleusercontent.com/static/fonts/iceland/v3/F6LYTZLHrG9BNYXRjU7RSw.woff) format('woff');
- }
- @font-face {
- font-family: 'Pacifico';
- font-style: normal;
- font-weight: 400;
- src: local('Pacifico Regular'), local('Pacifico-Regular'), url(http://themes.googleusercontent.com/static/fonts/pacifico/v5/yunJt0R8tCvMyj_V4xSjafesZW2xOQ-xsNqO47m55DA.woff) format('woff');
- }
- @font-face {
- font-family: 'PressStart';
- font-style: normal;
- font-weight: 400;
- src: local('Press Start 2P'), local('PressStart2P-Regular'), url(http://themes.googleusercontent.com/static/fonts/pressstart2p/v2/8Lg6LX8-ntOHUQnvQ0E7o3dD2UuwsmbX3BOp4SL_VwM.woff) format('woff');
- }
- @font-face {
- font-family: 'Audiowide';
- font-style: normal;
- font-weight: 400;
- src: local('Audiowide'), local('Audiowide-Regular'), url(http://themes.googleusercontent.com/static/fonts/audiowide/v2/8XtYtNKEyyZh481XVWfVOj8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
- }
- @font-face {
- font-family: 'Vampiro One';
- font-style: normal;
- font-weight: 400;
- src: local('Vampiro One'), local('VampiroOne-Regular'), url(http://themes.googleusercontent.com/static/fonts/vampiroone/v3/Ho2Xld8UbQyBA8XLxF1_NYbN6UDyHWBl620a-IRfuBk.woff) format('woff');
- }
- body{
- background-color: #222222;
- }
- #container{
- margin:auto;
- }
- /*neeeeoooon*/
- p{
- text-align:center;
- font-size:7em;
- margin:20px 0 20px 0;
- }
- a{
- text-decoration:none;
- -webkit-transition: all 0.5s;
- -moz-transition: all 0.5s;
- transition: all 0.5s;
- }
- p:nth-child(1) a{
- color:#FF1177;
- font-family:Monoton;
- }
- p:nth-child(1) a:hover{
- -webkit-animation: neon1 1.5s ease-in-out infinite alternate;
- -moz-animation: neon1 1.5s ease-in-out infinite alternate;
- animation: neon1 1.5s ease-in-out infinite alternate;
- }
- p:nth-child(2) a{
- font-size:1.5em;
- color:#228DFF;
- font-family:Iceland;
- }
- p:nth-child(2) a:hover{
- -webkit-animation: neon2 1.5s ease-in-out infinite alternate;
- -moz-animation: neon2 1.5s ease-in-out infinite alternate;
- animation: neon2 1.5s ease-in-out infinite alternate;
- }
- p:nth-child(3) a{
- color:#FFDD1B;
- font-family:Pacifico;
- }
- p:nth-child(3) a:hover{
- -webkit-animation: neon3 1.5s ease-in-out infinite alternate;
- -moz-animation: neon3 1.5s ease-in-out infinite alternate;
- animation: neon3 1.5s ease-in-out infinite alternate;
- }
- p:nth-child(4) a{
- color:#B6FF00;
- font-family:PressStart;
- font-size:0.8em;
- }
- p:nth-child(4) a:hover{
- -webkit-animation: neon4 1.5s ease-in-out infinite alternate;
- -moz-animation: neon4 1.5s ease-in-out infinite alternate;
- animation: neon4 1.5s ease-in-out infinite alternate;
- }
- p:nth-child(5) a{
- color:#FF9900;
- font-family:Audiowide;
- }
- p:nth-child(5) a:hover{
- -webkit-animation: neon5 1.5s ease-in-out infinite alternate;
- -moz-animation: neon5 1.5s ease-in-out infinite alternate;
- animation: neon5 1.5s ease-in-out infinite alternate;
- }
- p:nth-child(6) a{
- color:#BA01FF;
- font-family:Vampiro One;
- }
- p:nth-child(6) a:hover{
- -webkit-animation: neon6 1.5s ease-in-out infinite alternate;
- -moz-animation: neon6 1.5s ease-in-out infinite alternate;
- animation: neon6 1.5s ease-in-out infinite alternate;
- }
- p a:hover{
- color:#ffffff;
- }
- /*glow for webkit*/
- @-webkit-keyframes neon1 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF1177,
- 0 0 70px #FF1177,
- 0 0 80px #FF1177,
- 0 0 100px #FF1177,
- 0 0 150px #FF1177;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF1177,
- 0 0 35px #FF1177,
- 0 0 40px #FF1177,
- 0 0 50px #FF1177,
- 0 0 75px #FF1177;
- }
- }
- @-webkit-keyframes neon2 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #228DFF,
- 0 0 70px #228DFF,
- 0 0 80px #228DFF,
- 0 0 100px #228DFF,
- 0 0 150px #228DFF;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #228DFF,
- 0 0 35px #228DFF,
- 0 0 40px #228DFF,
- 0 0 50px #228DFF,
- 0 0 75px #228DFF;
- }
- }
- @-webkit-keyframes neon3 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FFDD1B,
- 0 0 70px #FFDD1B,
- 0 0 80px #FFDD1B,
- 0 0 100px #FFDD1B,
- 0 0 150px #FFDD1B;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FFDD1B,
- 0 0 35px #FFDD1B,
- 0 0 40px #FFDD1B,
- 0 0 50px #FFDD1B,
- 0 0 75px #FFDD1B;
- }
- }
- @-webkit-keyframes neon4 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #B6FF00,
- 0 0 70px #B6FF00,
- 0 0 80px #B6FF00,
- 0 0 100px #B6FF00,
- 0 0 150px #B6FF00;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #B6FF00,
- 0 0 35px #B6FF00,
- 0 0 40px #B6FF00,
- 0 0 50px #B6FF00,
- 0 0 75px #B6FF00;
- }
- }
- @-webkit-keyframes neon5 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF9900,
- 0 0 70px #FF9900,
- 0 0 80px #FF9900,
- 0 0 100px #FF9900,
- 0 0 150px #FF9900;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF9900,
- 0 0 35px #FF9900,
- 0 0 40px #FF9900,
- 0 0 50px #FF9900,
- 0 0 75px #FF9900;
- }
- }
- @-webkit-keyframes neon6 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #ff00de,
- 0 0 70px #ff00de,
- 0 0 80px #ff00de,
- 0 0 100px #ff00de,
- 0 0 150px #ff00de;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #ff00de,
- 0 0 35px #ff00de,
- 0 0 40px #ff00de,
- 0 0 50px #ff00de,
- 0 0 75px #ff00de;
- }
- }
- /*glow for mozilla*/
- @-moz-keyframes neon1 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF1177,
- 0 0 70px #FF1177,
- 0 0 80px #FF1177,
- 0 0 100px #FF1177,
- 0 0 150px #FF1177;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF1177,
- 0 0 35px #FF1177,
- 0 0 40px #FF1177,
- 0 0 50px #FF1177,
- 0 0 75px #FF1177;
- }
- }
- @-moz-keyframes neon2 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #228DFF,
- 0 0 70px #228DFF,
- 0 0 80px #228DFF,
- 0 0 100px #228DFF,
- 0 0 150px #228DFF;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #228DFF,
- 0 0 35px #228DFF,
- 0 0 40px #228DFF,
- 0 0 50px #228DFF,
- 0 0 75px #228DFF;
- }
- }
- @-moz-keyframes neon3 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FFDD1B,
- 0 0 70px #FFDD1B,
- 0 0 80px #FFDD1B,
- 0 0 100px #FFDD1B,
- 0 0 150px #FFDD1B;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FFDD1B,
- 0 0 35px #FFDD1B,
- 0 0 40px #FFDD1B,
- 0 0 50px #FFDD1B,
- 0 0 75px #FFDD1B;
- }
- }
- @-moz-keyframes neon4 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #B6FF00,
- 0 0 70px #B6FF00,
- 0 0 80px #B6FF00,
- 0 0 100px #B6FF00,
- 0 0 150px #B6FF00;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #B6FF00,
- 0 0 35px #B6FF00,
- 0 0 40px #B6FF00,
- 0 0 50px #B6FF00,
- 0 0 75px #B6FF00;
- }
- }
- @-moz-keyframes neon5 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF9900,
- 0 0 70px #FF9900,
- 0 0 80px #FF9900,
- 0 0 100px #FF9900,
- 0 0 150px #FF9900;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF9900,
- 0 0 35px #FF9900,
- 0 0 40px #FF9900,
- 0 0 50px #FF9900,
- 0 0 75px #FF9900;
- }
- }
- @-moz-keyframes neon6 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #ff00de,
- 0 0 70px #ff00de,
- 0 0 80px #ff00de,
- 0 0 100px #ff00de,
- 0 0 150px #ff00de;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #ff00de,
- 0 0 35px #ff00de,
- 0 0 40px #ff00de,
- 0 0 50px #ff00de,
- 0 0 75px #ff00de;
- }
- }
- /*glow*/
- @keyframes neon1 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF1177,
- 0 0 70px #FF1177,
- 0 0 80px #FF1177,
- 0 0 100px #FF1177,
- 0 0 150px #FF1177;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF1177,
- 0 0 35px #FF1177,
- 0 0 40px #FF1177,
- 0 0 50px #FF1177,
- 0 0 75px #FF1177;
- }
- }
- @keyframes neon2 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #228DFF,
- 0 0 70px #228DFF,
- 0 0 80px #228DFF,
- 0 0 100px #228DFF,
- 0 0 150px #228DFF;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #228DFF,
- 0 0 35px #228DFF,
- 0 0 40px #228DFF,
- 0 0 50px #228DFF,
- 0 0 75px #228DFF;
- }
- }
- @keyframes neon3 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FFDD1B,
- 0 0 70px #FFDD1B,
- 0 0 80px #FFDD1B,
- 0 0 100px #FFDD1B,
- 0 0 150px #FFDD1B;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FFDD1B,
- 0 0 35px #FFDD1B,
- 0 0 40px #FFDD1B,
- 0 0 50px #FFDD1B,
- 0 0 75px #FFDD1B;
- }
- }
- @keyframes neon4 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #B6FF00,
- 0 0 70px #B6FF00,
- 0 0 80px #B6FF00,
- 0 0 100px #B6FF00,
- 0 0 150px #B6FF00;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #B6FF00,
- 0 0 35px #B6FF00,
- 0 0 40px #B6FF00,
- 0 0 50px #B6FF00,
- 0 0 75px #B6FF00;
- }
- }
- @keyframes neon5 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #FF9900,
- 0 0 70px #FF9900,
- 0 0 80px #FF9900,
- 0 0 100px #FF9900,
- 0 0 150px #FF9900;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #FF9900,
- 0 0 35px #FF9900,
- 0 0 40px #FF9900,
- 0 0 50px #FF9900,
- 0 0 75px #FF9900;
- }
- }
- @keyframes neon6 {
- from {
- text-shadow: 0 0 10px #fff,
- 0 0 20px #fff,
- 0 0 30px #fff,
- 0 0 40px #ff00de,
- 0 0 70px #ff00de,
- 0 0 80px #ff00de,
- 0 0 100px #ff00de,
- 0 0 150px #ff00de;
- }
- to {
- text-shadow: 0 0 5px #fff,
- 0 0 10px #fff,
- 0 0 15px #fff,
- 0 0 20px #ff00de,
- 0 0 35px #ff00de,
- 0 0 40px #ff00de,
- 0 0 50px #ff00de,
- 0 0 75px #ff00de;
- }
- }
- /*REEEEEEEEEEESPONSIVE*/
- @media (max-width: 650px) {
- #container{
- width: 100%;
- }
- p{
- font-size:3.5em;
- }
- }
以上就是本文的全部内容,希望对大家的学习有所帮助。
DDR爱好者之家 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
DDR爱好者之家 Design By 杰米
暂无评论...
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
2024年11月24日
2024年11月24日
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]