JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>   
    <style> 
        body{
            text-align: center;
        }

        #dialPointer
        {
            position:relative;
            margin-left: auto;
            margin-right: auto;
            width:23px;
            height:281px;
        /*background:url(pointer.png);*/
            background-color: #ff0000;
            background-size:100% 100%;
            background-repeat:no-repeat;
        }

        .preLoad
        {
            width:23px;
            height:281px;

            -webkit-transform:rotate(-150deg); /* Safari and Chrome */
        }

        /*I want to call this one*/
        .didLoad
        {
            width:23px;
            height:281px;
            transform:rotate(110deg);
            -moz-transform:rotate(110deg); /* Firefox 4 */
            -o-transform:rotate(110deg); /* Opera */
        
            -webkit-transform:rotate(110deg); /* Safari and Chrome */
            -webkit-transition-duration:2s;
            -webkit-transition-delay: 2s;
        }

        </style>
</head>

<body>
    <div id="dialPointer" class="preLoad"></div>
    <script language="javascript" type="text/javascript">
        window.onload=function () {
            //But instead of using rotate(110deg), I would like to call "didLoad"

    document.getElementById("dialPointer").className += ' didLoad';


        };
        </script>
</body>
</html>