Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>Example</title> <style> .animatedBox { width: 200px; padding: 20px; margin: 30px; text-align: center; font: 24px sans-serif; color: white; background: yellowgreen; outline: 5px solid black; animation: myAnimation 1s linear 1s 5 alternate forwards; } @keyframes myAnimation { 100% { outline-offset: 20px; } } </style> <div class="animatedBox">Animated box</div>