Stacking Shadows

Developer
Size
2,146 Kb
Views
42,504

How do I make an stacking shadows?

Box & text shadows are a few of those properties that never seem to be used to their full potential. . What is a stacking shadows? How do you make a stacking shadows? This script and codes were developed by Matt Gross on 28 August 2022, Sunday.

Stacking Shadows Previews

Stacking Shadows - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Stacking Shadows</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<div class="first">Example of Stacking multiple box-shadows</div>
<div class="second">STACKED TEXT SHADOWS</div>
</body>
</html>

Stacking Shadows - Script Codes CSS Codes

div { margin: 30px; text-align: center; padding: 20px; font-family: 'Oswald', sans-serif; -webkit-transition: .3s ease; transition: .3s ease;
}
.first { background: #ddd; -webkit-box-shadow: 0 0 0 3px #fff, -26px 26px 0 -20px #999, 26px -26px 0 -20px #999, 0 0 0 9px #ddd; box-shadow: 0 0 0 3px #fff, -26px 26px 0 -20px #999, 26px -26px 0 -20px #999, 0 0 0 9px #ddd;
}
.first:hover {
/* radius only applied at smaller points the shadow would be at if it were centered */ border-radius: 150px;
/* note that webkit sometimes has trouble with moving shadows & leaves artifacts */ -webkit-box-shadow: 0 0 0 3px #fff, -36px 36px 0 -20px #999, 36px -36px 0 -20px #999, 0 0 0 9px #ddd; box-shadow: 0 0 0 3px #fff, -36px 36px 0 -20px #999, 36px -36px 0 -20px #999, 0 0 0 9px #ddd;
}
.second { background: #4d6d70; color: #fff; color: transparent; font-size: 60px; font-weight: bold; letter-spacing: 7px;
/* can stack as many text-shadows as desired */ text-shadow: 0 0 0 #fff, .05em .05em 0 #4d6d70, -.05em -.05em 0 #4d6d70, .05em -.05em 0 #4d6d70, -.05em .05em 0 #4d6d70, .05em 0 0 #4d6d70, -.05em 0 0 #4d6d70, 0 -.05em 0 #4d6d70, 0 .05em 0 #4d6d70, -.06em .07em 0 #ccc;
}
.second:hover {
/* shadows have better coverage on blocky text, can add more for additional coverage, but may have performance issues (untested, just speculating on diminishing returns) */ text-shadow: 0 0 0 #fff, .05em .05em 0 #ed3434, -.05em -.05em 0 #3f86f2, .05em -.05em 0 #999, -.05em .05em 0 #333, .05em 0 0 yellow, -.05em 0 0 yellow, 0 -.05em 0 yellow, 0 .05em 0 yellow, -.06em .07em 0 #ccc;
}
Stacking Shadows - Script Codes
Stacking Shadows - Script Codes
Home Page Home
Developer Matt Gross
Username mattgrosswork
Uploaded August 28, 2022
Rating 3
Size 2,146 Kb
Views 42,504
Do you need developer help for Stacking Shadows?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Matt Gross (mattgrosswork) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!