Solved

How can I pulse the glow effect in HTML

Posted on 2015-01-28
6
344 Views
Last Modified: 2015-01-28
Hi all,

I would like some HTML text to have a glow effect; something like this:
<!doctype html>
<html>
<head>
<style>
h1 {
    text-shadow: 0 0 3px #FF0000;
    color: white;
}
</style>
</head>
<body>
<h1>Text-shadow with red neon glow</h1>
</body>
</html>

Open in new window

However, I would like either the glow or text color to fade between two colors, to bring this section to the operators attention.
I need to be able to use this code in IE11, Firefox and Chrome.
Any idea how I can achieve this?
Any help would be appreciated.
Many thanks,
James
0
Comment
Question by:jatkin
  • 4
  • 2
6 Comments
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40575313
you can use js to add a class, and a timeout to remove the class. the fade effect can be achieved with a css transition.

Here is a fiddle. Click on the text:
http://jsfiddle.net/9j01fbsz/
0
 
LVL 4

Author Comment

by:jatkin
ID: 40575319
That looks almost perfect!
How do I do this effect continuously without intervention from the user?
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40575336
you could do it on page load.. not sure that's what you want though - it would be pretty annoying. hold on, let me modify the script.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 40575345
0
 
LVL 4

Author Closing Comment

by:jatkin
ID: 40575352
Perfect!!
Thanks so much for such a quick response :-)
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40575373
;)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now