[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I pulse the glow effect in HTML

Posted on 2015-01-28
6
Medium Priority
?
652 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:James Atkin
  • 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:James Atkin
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Accepted Solution

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

Author Closing Comment

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

Expert Comment

by:Kyle Hamilton
ID: 40575373
;)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

834 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