Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>Example</title> <style> .animatedBox { width: 300px; height: 200px; text-align: center; font: 24px sans-serif; color: white; text-shadow: 0px 0px 12px black; background-image: url('/pix/samples/16l.jpg'); background-position: bottom left; border: 1px solid black; animation: moveBg 10s ease 1s 2 alternate none; } @keyframes moveBg { 100% { background-position: bottom right; } } </style> <div class="animatedBox">Animated box</div>