Create an Anaglyphic Text Effect Using CSS

There are so many CSS properties that can be used to create really cool text effects. Text-shadow is a property that’s commonly used to to achieve these funky effects, but the :before or :after pseudo-selectors can also be used in combination with the content property to create some pretty awesome text designs in pure CSS. In fact, the :after pseudo-selector is used to create an effect that makes your text look like it’s being viewed through an anaglyphic 3D lens. By repeating the text after the tag originally appears by using the content property and playing around with the colors and the positioning, you can make it look like you’re seeing double.

Here’s how your CSS code should look:

Join us in our newest publication:
  1. #anaglyphic {
  2. display: inline;
  3. position: relative;
  4. letter-spacing: -5px;
  5. color: #00b2b3;
  6. font-size: 100px;
  7. }
  9. #anaglyphic:after {
  10. content: "ANAGLYPHIC";
  11. position: absolute;
  12. top: 5px;
  13. left: 5px;
  14. color :#ff4d4d ;
  15. }

Screen Shot 2016-08-28 at 1.55.27 PM

You can play around with the font family, colors, sizing and positioning to really achieve the text effect you’re looking for and make it your own. If you’re looking for other text effects, check out our tutorial on creating embossed text here,  or click here to see our tutorial on making glowing neon text.

Share and Enjoy !

0 0