HTML CSS examples for CSS Animatable Property:background
Make this background image a smooth animation
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .poster<!--from www . j av a 2s . co m--> { width: 178px; height: 257px; background-color: #212121; background-size: 90px 90px; background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%, transparent 75%, transparent); -webkit-animation: backgroundmove infinite 3s linear; } @-webkit-keyframes backgroundmove { from { background-position: left; } to { background-position: right; } } </style> </head> <body> <div class="poster"></div> </body> </html>