Welcome to Bucaro TecHelp!

Bucaro TecHelp
HTTPS Encryption not required because no account numbers or
personal information is ever requested or accepted by this site

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Create Animated Glowing Text


CSS3 added many new features, one of them was the ability to create animations entirely in CSS, without JavaScript. CSS animations are a way of chaining multiple transitions on the same property together to be executed one after another.

animation: glow 1.5s infinite alternate;

First define the animation. Above we define an animation named glow that will have a duration of 1.5 seconds. The infinite value means we want it to repeat forever. The alternate value means we want it to reverse direction every cycle.

@keyframes glow
from { text-shadow: 0 0 10px #FF9090; }
to { text-shadow: 0 0 20px red; }

Then we use the @keyframes directive, followed by the name of the animation, followed by a list of the steps, or keyframes, in the animation. Here, we have defined the keyframes using the selectors from and to. For each keyframe you define a semicolon separated list of CSS properties. from defines the property values at the beginning of the transition, to defines the values at the end of the transition. Of course in this example the alternate value means we want it to reverse direction every cycle.

Alternately you could use percentage selectors which define the property values at specific percentages of the animation duration. Percentage values can be from 0-100%, and using percentage values You can have as many keyframe selectors as you want in one animation.

<span class="anim_glow">

Lastly, apply the animation to an html element. Here we defined the animation in a style class named .anim_glow, which we applied to an html span element containing the text "GLOW".

CSS3 animations are fun and easy to create (assuming that you already know CSS), and you'll find many very creative examples spread across the web.

More Easy Cascading Style Sheets:
• How to Use a Starburst on Your Web Page
• CSS 3D Rotation Examples
• Code to Move the Scrollbar to the Left Side
• Flat Design and Ghost Buttons
• Add Background Color to a Heading
• How to Center a DIV
• Create CSS Button Rollovers
• How to Make Images Responsive
• Make a Fixed-width Variable-height Round Cornered Box
• Pro CSS Techniques

RSS Feed RSS Feed

Follow Stephen Bucaro Follow @Stephen Bucaro

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2023 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268