<div class="shape-ex4"></div>
.shape-ex4{
    width: 100px;
    height: 100px;
    background-color: #666;
    margin: 0 auto;
    animation: rightIn 2s linear 0s infinite;
}
@keyframes rightIn {
    from {
        transform: translate3d(20%, 0, 0);
    }

    to {
        transform: none;
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.