20+ CSS Text Shadow Effects

Last Updated on by in CSS Examples
CSS Text Shadow Effects

This article showcases a curated collection of CSS text shadow effects for developers and designers that they use to add a shadow behind text, creating visual depth and enhancing its appearance. These effects are intended to captivate and enchant your visitors, sourced from authentic sources for adding visual appeal to your content.


CSS text shadow effects refer to the ability to add shadow effects to the text of a web page using advanced CSS (Cascading Style Sheets) properties. Embracing the design of a text on a web page by adding the illusion of depth and controlling various aspects of the text shadow, including creating bulging text and adjusting blur, color, radius, and position through horizontal and vertical offsets. Even the text shadow effect is very powerful to make the shadow style subtle and visually appealing.


We’ve gathered these text shadow effects with free HTML and CSS codes and examples from valuable sources like CodePen and GitHub. Now let’s explore our assortment of CSS text shadow effects and experience the newest and finest effects.

01. 3D Cartoon Text with CSS Text Shadow

See the Pen
3D Cartoon Text w/CSS text-shadow
by Fielding Johnston (@fielding)
on CodePen.


Author: Fielding Johnston @fielding
Links: Source Code / Demo
Created on: October 16, 2018
Made with: HTML, CSS

02. Outlined Text Shadow with Fallback

See the Pen
outlined text shadow with fallback
by Eric Portis (@eeeps)
on CodePen.

Author: Eric Portis @eeeps
Links: Source Code / Demo
Created on: March 31, 2021
Made with: HTML, CSS

03. Animated Text-Shadow

See the Pen
Animated Text-Shadow
by Erin E. Sullivan (@erinesullivan)
on CodePen.


Author: Erin E. Sullivan @erinesullivan
Links: Source Code / Demo
Created on: September 10, 2018
Made with: HTML, CSS

04. Variable Longshadow with Gradients Mixin

See the Pen
Variable Longshadow with Gradients Mixin
by Dario Corsi (@dariocorsi)
on CodePen.


Author: Dario Corsi @dariocorsi
Links: Source Code / Demo
Created on: April 15, 2016
Made with: HTML, CSS, SCSS

05. 3D-Text with Text-Shadow

See the Pen
3D-Text with Text-Shadow
by Daniel Riemer (@zitrusfrisch)
on CodePen.


Author: Daniel Riemer @zitrusfrisch
Links: Source Code / Demo
Created on: December 29, 2012
Made with: HTML, CSS

06. Groovy CSS Effect

See the Pen
Groovy CSS Effect
by Daniel Gonzalez (@dan10gc)
on CodePen.


Author: Daniel Gonzalez @dan10gc
Links: Source Code / Demo
Created on: February 16, 2018
Made with: HTML(Pug), CSS, SCSS

07. Text Shadow

See the Pen
text-shadow
by IMarty (@IMarty)
on CodePen.


Author: IMarty @IMarty
Links: Source Code / Demo
Created on: June 6, 2017
Made with: HTML, CSS, SCSS

08. Funky Retro Text Shadow

See the Pen
Funky Retro Text Shadow
by miranda (@mirandalwashburn)
on CodePen.


Author: miranda @mirandalwashburn
Links: Source Code / Demo
Created on: October 6, 2020
Made with: HTML, CSS, SCSS

09. Text Shadow- Embossed

See the Pen
Text Shadow Example
by Aakhya Singh (@aakhya)
on CodePen.


Author: Aakhya Singh @aakhya
Links: Source Code / Demo
Created on: November 18, 2018
Made with: HTML, CSS

10. Text Shadow- Emerging Out

See the Pen
Text Shadow Example
by Aakhya Singh (@aakhya)
on CodePen.


Author: Aakhya Singh @aakhya
Links: Source Code / Demo
Created on: November 18, 2018
Made with: HTML, CSS

11. Text Shadow- Letterpressed

See the Pen
Text Shadow Example
by Aakhya Singh (@aakhya)
on CodePen.


Author: Aakhya Singh @aakhya
Links: Source Code / Demo
Created on: November 18, 2018
Made with: HTML, CSS

12. Neon Text-shadow Effect

See the Pen
Neon text-shadow effect
by Erik Jung (@erikjung)
on CodePen.


Author: Erik Jung @erikjung
Links: Source Code / Demo
Created on: February 28, 2016
Made with: HTML, CSS, JS

13. Netflix Style Text Animation With CSS

See the Pen
Netflix style text animation with CSS
by Nooray Yemon (@yemon)
on CodePen.


Author: Nooray Yemon @yemon
Links: Source Code / Demo
Created on: October 14, 2017
Made with: HTML (SLIM), CSS, SCSS

14. Text Shadow- Rainbow Effect

See the Pen
Text Shadow Example
by Aakhya Singh (@aakhya)
on CodePen.


Author: Aakhya Singh @aakhya
Links: Source Code / Demo
Created on: November 18, 2018
Made with: HTML, CSS

15. Pinchy Type with CSS Text-Shadow

See the Pen
Pinchy Type with CSS text-shadow
by Bennett Feely (@bennettfeely)
on CodePen.


Author: Bennett Feely @bennettfeely
Links: Source Code / Demo
Created on: August 23, 2015
Made with: HTML, CSS, SCSS

16. Shaded Text

See the Pen
Shaded Text
by Rafael González (@rgg)
on CodePen.


Author: Rafael González @rgg
Links: Source Code / Demo
Created on: September 16, 2016
Made with: HTML(Pug), CSS, SCSS

17. Pretty Shadow

See the Pen
Pretty shadow
by Alex Moore (@MoorLex)
on CodePen.


Author: Alex Moore @MoorLex
Links: Source Code / Demo
Created on: August 24, 2016
Made with: HTML, CSS

18. Text-Shadow

See the Pen
Text-Shadow
by Mayur Elbhar (@mayurelbhar)
on CodePen.


Author: Mayur Elbhar @mayurelbhar
Links: Source Code / Demo
Created on: November 13, 2014
Made with: HTML, CSS

19. CSS Alphabets

See the Pen
CSS Alphabets | Part-1 [A] | #Programmer
by #Programmer (@SuperbProgrammer)
on CodePen.


Author: #Programmer @SuperbProgrammer
Links: Source Code / Demo
Created on: November 29, 2021
Made with: HTML, CSS

20. Rotating Text Shadow (CSS only)

See the Pen
Rotating Text Shadow (CSS only)
by DanteInfernali (@DanteInfernali)
on CodePen.


Author: DanteInfernali @DanteInfernali
Links: Source Code / Demo
Created on: November 06, 2019
Made with: HTML, CSS

21. Knockout Text Example

See the Pen
Knockout Text Example
by Aakhya Singh (@aakhya)
on CodePen.


Author: Aakhya Singh @aakhya
Links: Source Code / Demo
Created on: November 18, 2018
Made with: HTML, CSS