I need to create a rather large text-shadow, with spread of around 120px. While the usual approach to stacking shadows together like text-shadow: 0px 0px 10px #fff, 0px 0px 10px;
does work when working with smaller shadows, using a larger value instead of 10px
creates a hard to solve problem.
The larger the spread value is, the less visible the shadow is, which means that for larger shadows, you need to stack not two, but more like 30 shadows together. Using that number of shadows usually breaks the browser and the page either does not load or does not display correctly.
Displaying a large shadow is important for the page I am working on. Does any workaround exist? I really want to avoid using images for this and would like to stick to using html elements with styles applied to them.
2
Answers
Due to the lack of an example, I had to "figure out" what you wanted. If I understand correctly, you want to display the "shadow" of the text in the background, meaning you want to see the text faintly in the background. Using a pseudo-element, I read the text entered in the "data-text" attribute, set it to have a transparent text color, increased the font size, and added a small shadow to it.
Example # 1
Example # 2
Actually, if you make the text color lighter than the original, you don’t necessarily need to use the text-shadow at all, although it is true that text-shadow offers more possibilities.
Example # 3
Or, if you really want to create a shadow effect, for text-shadow (and/or blur filter) values higher than 10-20px, it would result in a blob, which is a perfectly valid outcome… If you gradually increase the shadow size, you might achieve a decent result. Nevertheless, I’ll leave the example here in case someone needs it.
You can fake the shadow with a copy of the text.