Assignment CSS Calc and CSS Var (Branch 13599) (Co..
✨ CHAWANWIT KUANPHIPATKUL
<html> <head> <title></title> <style> .banner{ position:relative; width:100%; height:100%; background-image: linear-gradient(to top, #a9e3ff 15%, #38abe1 40%, #0651c1 80%, #002855 100%); background-size:cover; background-position:bottom; } .banner .clouds{ position:absolute; top:0; left:0; width:100%; height:100%; overflow: hidden; } .banner .clouds img{ position:absolute; bottom:0; max-width:100%; animation: animate 8s linear infinite; } @keyframe animate{ 0%{ transform: translatex(-100%); } 100%{ transform: translatex(100%); } } </style> </head> <body> <div class="banner"> <div class="clouds"> <img src = "https://cdn.discordapp.com/attachments/907544840437366807/944593182480539768/cloud3.png" style="--i:1;"> <img src = "img" style="--i:2;"> <img src = "img" style="--i:3;"> <img src = "img" style="--i:4;"> <img src = "img" style="--i:5;"> </div> </div> </body> </html>