LCSExample

<div id="rotate">This text will rotate indefinitely</div>
#rotate {
    display: inline-block;
    margin-top: 100px;

    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: rotate;
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

 

Document Tags and Contributors

Contributors to this page: louisremi
Last updated by: louisremi,