CSS Fade Out Text Effects – Quick Html CSS Tips and Tricks

CSS Fade Out Text Effects – Quick Html CSS Tips and Tricks

Html


<h1>Mountain</h1>

CSS


body
{
    margin: 0;
    padding: 0;
    background: url(bg.jpg);
    background-size: cover;
}
h1
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0;
    font-size: 12em;
    font-family: sans-serif;
    color: #fff;
    text-transform: uppercase;
    transition: 0.5s;
    background: linear-gradient(rgba(255,255,255,1) 20%, transparent 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h1:hover
{
    letter-spacing: 20px;
}

See Demo

Leave a Comment