How to create Glowing Text using CSS?
January 24, 2021

We can use the text-shadow property to create the light effect around the text. After that we can increase and decrease that light effect using animation.

CSS text-shadow Property

The CSS text-shadow property adds shadow to texts.

We can add a comma separated list of values to add shadows to the text.

For example,

We can add more than one shadow to the text by adding a comma separated list of values.


To create a CSS animation, we need to style the element with the animation property/sub-properties. It will let us configure the timing, duration, and other details of how the animation sequence should progress.

We can use shorthand property to set the animation values. The syntax is:

animation: name duration timing-function delay iteration-count direction fill-mode;

We don’t need to use all sub-properties for our example.

The @keyframes Rule

To change the animation from the current style to the new style at certain times, we can specify the styles inside the @keyframes rule. We also need to bind the animation to an element.

Complete Text Glow Example


Leave a Reply

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 How to set opacity or transparency using CSS? #3 Pagination in CSS with multiple examples #4 How to make HTML form interactive and using CSS? #5 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #6 How to uninstall Cocoapods from the Mac OS?

Recently Posted

Mar 2 How to zoom an element on hover using CSS? Mar 2 the box-sizing property in CSS Mar 2 WordPress: How to access first and random row values from a repeater field in ACF? Mar 1 The basics of CSS Box model Feb 27 WordPress: How to display slider repeater fields in ACF? Feb 26 Simple Page Hit Counter in PHP

You might also like these

How to Create a Copy of a Table in SQL and MySQL?SQL/MySQLHow to detect the Blog Page in WordPress?WordPressCrypto.getRandomValues() method in JavaScriptJavaScriptHow to replace HTML lists using CSS Counters?CSSHow to apply style only to first child and/or only to children other than the first child?CSSGive buttons accessible namesUI/UXIN and BETWEEN Operators in SQLSQL/MySQLHow to Display Related Posts in WordPress?WordPressHow to obfuscate JavaScript code to hide it from View Source?JavaScriptThe difference between isFinite() method and isFinite() function in JavaScriptJavaScriptHow to make a UILabel clickable in Swift 5?Swiftperspective property in CSSCSS