﻿.bounce {
    height: 50px;
    overflow: hidden;
    position: relative;
    /*background: white;*/
    color: #ffc300;
    border: 1px solid orange;
    font-stretch: normal;
    font-weight: 100;
    font-size: medium;
}

    .bounce p {
        position: absolute;
        
        width: auto;
        height: auto;
        margin:5px;
        line-height: 50px;
        text-align: left;
        /* Starting position */
        -moz-transform: translateX(50%);
        -webkit-transform: translateX(50%);
        transform: translateX(50%);
        /* Apply animation to this element */
        -moz-animation: bouncing-text 40s alternate infinite alternate;
        -webkit-animation: bouncing-text 40s alternate infinite alternate;
        animation: bouncing-text 40s alternate infinite alternate;
        left: 10px;
    }
/* Move it (define the animation) */
@-moz-keyframes bouncing-text {
    0% {
        -moz-transform: translateX(50%);
    }

    100% {
        -moz-transform: translateX(-50%);
    }
}

@-webkit-keyframes bouncing-text {
    0% {
        -webkit-transform: translateX(50%);
    }

    100% {
        -webkit-transform: translateX(-50%);
    }
}

@keyframes bouncing-text {
    0% {
        -moz-transform: translateX(50%); /* Browser bug fix */
        -webkit-transform: translateX(50%); /* Browser bug fix */
        transform: translateX(50%);
    }

    100% {
        -moz-transform: translateX(-50%); /* Browser bug fix */
        -webkit-transform: translateX(-50%); /* Browser bug fix */
        transform: translateX(-50%);
    }
}
