JSFiddle - React, Tailwind, and code Playground

by bnson

HTML

<!DOCTYPE html>

<html>

<head>


    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <title>CSS3 inset text-shadow trick</title>


    <style type='text/css'>
        html,
        body {
            height: 100%;
        }
        
        body {
            margin: 0;
            background: #0A539C;
            background: linear-gradient(top, #4293d6 0%, #001e96 100%);
            overflow: hidden;
        }
        
        .depth {
            display: block;
            padding: 50px;
            color: black;
            font: bold 7em Arial, sans-serif;
            position: relative;
        }
        
        .depth:before,
        .depth:after {
            content: attr(title);
            padding: 50px;
            color: rgba(255, 255, 255, .1);
            position: absolute;
        }
        
        .depth:before {
            top: 1px;
            left: 1px
        }
        
        .depth:after {
            top: 2px;
            left: 2px
        }
    </style>


</head>


<body>

    <h1 class="depth" title="Lorem ipsum">Lorem ipsum</h1>

</body>


</html>