Nature Backgrounds - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Nature Backgrounds</title> <style> body, html { margin: 0; padding: 0; height: 100%; font-family: Arial, sans-serif; } .background { position: absolute; width: 100%; height: 100%; overflow: hidden; } .background .sun { position: absolute; top: 20%; left: 50%; width: 100px; height: 100px; background: radial-gradient(circle, yellow 50%, orange); border-radius: 50%; animation: sunMovement 20s linear infinite; } @keyframes sunMovement { 0% { left: 0%; top: 20%; } 50% { left: 50%; top: 50%; } 100% { left: 100%; top: 20%; } } .background .cloud { position: absolute; top: 10%; width: 200px; height: 100px; background: white; border-radius: 50px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); animation: cloudMovement 30s linear infinite; } @keyframes cloudMovement { 0% { left: -200px; } 100% { left: 100%; } } .background .cloud::before, .background .cloud::after { content: ''; position: absolute; background: white; width: 100px; height: 80px; border-radius: 50%; } .background .cloud::before { top: -40px; left: 30px; } .background .cloud::after { top: -30px; right: 30px; } .background .tree { position: absolute; bottom: 0; width: 100px; height: 150px; background: brown; left: 10%; animation: treeMovement 10s linear infinite; } @keyframes treeMovement { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } } .background .tree::before, .background .tree::after { content: ''; position: absolute; background: green; border-radius: 50%; } .background .tree::before { width: 150px; height: 150px; top: -100px; left: -25px; } .background .tree::after { width: 100px; height: 100px; top: -50px; left: 0; } .background .birds { position: absolute; top: 30%; left: 50%; font-size: 2em; animation: birdsMovement 15s linear infinite; } @keyframes birdsMovement { 0% { left: -10%; } 100% { left: 110%; } } .background .grass { position: absolute; bottom: 0; width: 100%; height: 50px; background: linear-gradient(to top, #228B22, transparent); animation: grassMovement 5s linear infinite; } @keyframes grassMovement { 0%, 100% { background-position: 0 0; } 50% { background-position: 50px 50px; } } </style> </head> <body> <div class="background"> <div class="sun"></div> <div class="cloud"></div> <div class="cloud" style="top: 20%; left: 60%;"></div> <div class="tree"></div> <div class="birds">🕊️🕊️🕊️</div> <div class="grass"></div> </div> </body> </html>