JSFiddle - React, Tailwind, and code Playground

by brunogc

HTML

<p class="test1">This has an opacity value</p>

<p class="test2">This does not</p>

CSS

p{
    text-align: center;
    color: #FFF;
    padding:20px;
    background: #000;
}

.test1 {
    -webkit-animation: textOpacity .4s cubic-bezier(.165,.84,.44,1) .6s 1 both;
}

.test2 {
    -webkit-animation: textNoOpacity .4s cubic-bezier(.165,.84,.44,1) .6s 1 both;
}

@-webkit-keyframes textNoOpacity {
    
    0% {
        -webkit-transform: scale3d(0,0,1);
    }
    
    100% {
        -webkit-transform: scale3d(1,1,1);
    }
    
}
@-webkit-keyframes textOpacity {
    
    0% {
        opacity: 0;
        -webkit-transform: scale3d(0,0,1);
    }
    
    100% {
        opacity: 1;
        -webkit-transform: scale3d(1,1,1);
    }
    
}