betoaraujo1980 Posted October 2, 2016 Share Posted October 2, 2016 I'm facing issue with the animation on the code bellow. It works normally on Chrome but no animation at all on IE 11 or Edge. Could someone point me out what is the cause of that? <html lang="en"> <head> <title>Xibo Open Source Digital Signage</title> <style type="text/css"> @keyframes example { 0% {width:92px;} 1.25% {width:168px;} 11.25% {width:168px;} 12.5% {width:92px;} } body { margin: 0; overflow: hidden; font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; } h1, h2, h3, h4, p { margin-top: 0; } .cotacao {width:160px; float:left; font-size: 20px;} .moeda-container, .icone-container {display:table;width:100%;} .moeda {display:table-cell; height:60px; text-align:center; vertical-align:middle; font-weight:bold;} .icone {display:table-cell; height:140px; text-align:center; vertical-align:middle;} .valores {text-align:center;} .item:nth-of-type(1) img { animation-name: example; animation-duration: 40s; animation-iteration-count: infinite; } .item:nth-of-type(2) img { animation-name: example; animation-duration: 40s; animation-iteration-count: infinite; animation-delay: 5s; } </style> </head> <body style="width: 1284px; height: 309.6px;"> <div id="content"> <div class="item"> <div class="cotacao"> <div class="moeda-container"> <p class="moeda">DOLAR</p> </div> <div class="icone-container"> <div class="icone"> <img src="http://optisignage.dyndns.org/customers/AXBR/icone1.png"> </div> </div> <div class="valores-container"> <p class="valores">3,2504</p> <p class="valores">3,2517</p> </div> </div> </div> <div class="item"> <div class="cotacao"> <div class="moeda-container"> <p class="moeda">EURO</p> </div> <div class="icone-container"> <div class="icone"> <img src="http://optisignage.dyndns.org/customers/AXBR/icone2.png"> </div> </div> <div class="valores-container"> <p class="valores">3,6508</p> <p class="valores">3,6524</p> </div> </div> </div> </div> </body> </html> Thank you in advance. Link to comment Share on other sites More sharing options...
dsonesuk Posted October 2, 2016 Share Posted October 2, 2016 You need to have keyframes reference from 0 up to 100% @keyframes example { 0% {width:92px;} 1.25% {width:168px;} 11.25% {width:168px;} 12.5% {width:92px;} 100% {width:92px;} } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now