Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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

  • 13-04-2015 02: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