Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Css @-webkit-keyframes won't work on chrome

Options
  • 13-04-2015 3:07pm
    #1
    Closed Accounts Posts: 431 ✭✭


    Css @-webkit-keyframes won't work on chrome it works in firefox but not chrome any idea what the problem is here?

    HTML:
    <div id="slider">
    <figure>
    <img src="images/slider 1.png" alt="">
    <img src="images/slider 2.png" alt="">
    <img src="images/slider 3.png" alt="">
    <img src="images/slider 4.png" alt="">
    <img src="images/slider 5.png" alt="">
    </figure>
    </div>
    

    CSS:
    @-webkit-keyframes slidy {
    0% { left: 0%; }
    20% { left: 0%; }
    25% { left: -100%; }
    45% { left: -100%; }
    50% { left: -200%; }
    70% { left: -200%; }
    75% { left: -300%; }
    95% { left: -300%; }
    100% { left: -400%; }
    }
    
    body { margin: 0; } 
    z-index:-100;
    div#slider { overflow: hidden; }
    div#slider figure img { width: 20%; float: left; }
    div#slider figure { 
      position: relative;
      width: 500%;
      margin: 0;
      left: 0;
      text-align: left;
      font-size: 0;
      animation: 12s slidy infinite; 
    }
    


Comments

Advertisement