HW_P’ARIN_D
✨ นางสาวรจนา หอมประสิทธิ์
<html> <style> body { background-color: wheat; overflow: hidden; } .wrap { display: block; padding-top: 2.5%; width: 100%; text-align: center; } .main { position: relative; display: inline-block; height: 550px; width: 1000px; box-sizing: border-box; border: 3px solid #f008; overflow: hidden; background-color: #BFDFEC; background-repeat: repeat-x; background-image: url("https://cdn.discordapp.com/attachments/750001431230152824/810156876586156072/image_1.jpg"); background-size:cover; /* animation: movement 10s linear infinite; */ } .parin { position: absolute; width: 120px; height: 120px; animation: parinmove 4s infinite linear; } @keyframes parinmove { from { top: 600px; right: -10; transform: rotateZ(0deg); } to { top: -700px; right: 600px; transform: rotateZ(-360deg); } } @keyframes movement { 0% { background-position: 0px 0px; } 100% { background-position: 560px 0px; } } .sun { position: absolute; width: 204px; height: 204px; background-image: url(""); left: 20px; top: 10px; animation: movesun 1s infinite alternate; } .imgsun { position: absolute; top:15px; left: 35px; width: 150px; height: 150px; animation: moveimgsun 10s linear infinite; z-index:1; } @keyframes moveimgsun { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } } @keyframes movesun{ 0% {left:35px; top:10px; } 30% {right:50px; top:20px;} } .airplane { position: absolute; top: 120px; right: -400px; /* left: 0; */ animation: airplanemove 10s linear infinite; z-index:1; } @keyframes airplanemove{ from { transform: translateX(0px); } to { transform: translateX(-2500px); } } .banner { position: absolute; bottom: 0px; left: 320px; animation: bannermove 1s alternate infinite; } @keyframes bannermove { from { transform: translateY(0px) rotateZ(0deg); } to { transform: translateY(10px) rotateZ(2deg); } } .palm { position: absolute; top: 100px; left: -40px; animation: movepeople 2s infinite; } .pang { position: absolute; top: 138px; left: 200px; animation: movepeople 2s infinite; } .kim { position: absolute; left: -150px; bottom: -140px; animation: kimarrive 4s alternate infinite; } @keyframes kimarrive { from { transform: translateY(190px); } to { transform: translateY(0px); } } .jay { position: absolute; top: 160px; left: 320px; animation: movepeople 2s infinite; } .don { position: absolute; top: 130px; right: 0px; animation: movepeople 2s infinite; } .tonhom { position: absolute; top: 150px; left: 320px; animation: movepeople 2s infinite; } .mod { position: absolute; top: 155px; right: 250px; animation: movepeople 2s infinite; } .phu { position: absolute; top: 120px; right: -90px; transform: rotateZ(90deg); } .ohm { position: absolute; top: 130px; right: 135px; animation: movepeople 2s infinite; } @keyframes movepeople{ 0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(3px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } } .train{ position: absolute; top:149px; left:0px; animation:poonpoon 11s linear infinite forwards; } @keyframes poonpoon{ from { left: 0px; top: 149px; } to { left: 90%; top: 65%; }} } .balloon { width: 9.35rem; height: 9.35rem; background-color: #F27C68; border-radius: 50%; border: 4px solid #D7E7EA; position: absolute; left: 0%; top: 0px; transform: translate(-50%); -webkit-animation: moving-balloon 3s ease infinite; animation: moving-balloon 3s ease infinite; } .balloon::after { width: 4.35rem; height: 0; border-top: 3.75rem solid #F27C68; border-left: 1.85rem solid transparent; border-right: 1.85rem solid transparent; content: ''; position: absolute; top: -120px; left: -160px; transform: translate(-50%); } .balloon::before { width: 70px; height: 25px; background-color: #E86B5A; border-radius: 5px; content: ''; position: absolute; left: -160px; top: -70px; transform: translate(-50%); } .basket { width: 2.65rem; height: 1.75rem; background: #D1C1A6; border-radius: 0 0 3px 3px; position: absolute; left: -40%; transform: translate(-50%); top: 65px; -webkit-animation: moving-basket 3s ease infinite; animation: moving-basket 3s ease infinite; } .basket:before { width: 3.15rem; height: 0.65rem; background: #B2A082; border-radius: 3px; content: ''; position: absolute; top: -0px; left: 20px; transform: translate(-50%); } .basket:after { width: 1.55rem; height: 2.15rem; border-left: 2px solid #B2A082; border-right: 2px solid #B2A082; content: ''; position: absolute; top: -20px; left: 50%; transform: translate(-50%) perspective(50px) rotateX(-40deg); } .cloud { width: 140px; height: 1.85rem; background: white; border-radius: 3.15rem; position: absolute; top: 2rem; right: 13rem; -webkit-animation: moving-cloud 3s ease infinite; animation: moving-cloud 3s ease infinite; } .cloud::before { width: 3.75rem; height: 3.75rem; background: white; border-radius: 50%; content: ''; position: absolute; top: -2.5rem; left: 1.25rem; } .cloud::after { width: 3.15rem; height: 3.15rem; background: white; border-radius: 50%; content: ''; position: absolute; top: -1.85rem; right: 1.55rem; } .cloud2 { width: 150px; height: 2.5rem; background: white; border-radius: 3.15rem; position: absolute; top: -5rem; right: -15rem; -webkit-animation: moving-cloud 3s ease infinite; animation: moving-cloud 3s ease infinite; } .cloud2::before { width: 3.75rem; height: 3.75rem; background: white; border-radius: 50%; content: ''; position: absolute; top: -2.5rem; left: 1.25rem; } .cloud2::after { width: 3.15rem; height: 3.15rem; background: white; border-radius: 50%; content: ''; position: absolute; top: -1.85rem; right: 1.55rem; } main { width: 25rem; height: 25rem; margin-top: 2rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } @-webkit-keyframes moving-balloon { 0% { transform: translate(-50%) } 50% { transform: translate(-50%, -10%) } } @keyframes moving-balloon { 0% { transform: translate(-50%) } 50% { transform: translate(-50%, -10%) } } @-webkit-keyframes moving-basket { 0% { transform: translate(-50%) } 50% { transform: translate(-50%, -40%) } } @keyframes moving-basket { 0% { transform: translate(-50%) } 50% { transform: translate(-50%, -40%) } } @-webkit-keyframes moving-cloud { 0% { transform: translateX(0) } 50% { transform: translateX(-7%) } } @keyframes moving-cloud { 0% { transform: translateX(0) } 50% { transform: translateX(-10%) } } .sunrise{ position:absolute; top:150px; left:600px; animation: wibwib 3s linear infinite alternate; } @keyframes wibwib{ from{ opacity:0; } to{ opacity:1; } } .bird { position: absolute; right: 10px; bottom: 50px; animation: movebird 2s infinite; } .ja2{ position: absolute; bottom: -90px; right: -10px; } @keyframes movebird{ 0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(3px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } } </style> <body> <div class="wrap"> <div class="main"> <div class="airplane"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809438704171089920/kisspng-airplane-cartoon-cartoon-airplane-5a7dd08e949053.8450888315181948306085-removebg-preview_1.png" width="450" height="249.844"> <div class="banner"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809764818775965696/AviC3A3o2Bfaixa2B22B-2BEdiC3A7C3A3o2BBlog2BPNG-Free.png" width="850" height="350"> <div class="palm"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809421231631499345/84458983_2741963735892425_6825954762907713536_o-removebg-preview.png" width="400" height="400"> </div> <div class="pang"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809433885120397413/S__94044163-removebg-preview-removebg-preview.png" width="120" height="120"> </div> <div class="jay"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809438374309265428/profile.png" width="85" height="85"> </div> <div class="ohm"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809797752359223296/vEWdBQ6.png" width="100" height="100"> </div> <div class="don"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809443742959272006/gennie_platinum.png" width="130" height="130"> </div> <div class="tonhom"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809444168148844564/image0.png" width="190" height="190"> </div> <div class="mod"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809472796287565914/149019802_164915691901684_5829502625261816680_n.png" width="90" height="90"> </div> <div class="phu"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809774603958091816/profile_photo-190x190-removebg-preview.png" width="90" height="90"> </div> </div> </div> <div class="sun"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809796863691587594/92_20210211125710.png" class="imgsun"> </div> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809796846506999858/image4-removebg-preview.png" class="parin"> <div class="kim"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809437321795469322/20191023_133323-removebg-preview_1.png" width="400" height="400"></div> <div class="train"> <img src="https://cdn.discordapp.com/attachments/750001431230152824/810139129596739594/Untitled-1.png" width="400" height="400"> </div> <div class="sunrise"> <img src="https://pngimg.com/uploads/sun/sun_PNG13417.png" width="150" height="150"> </div> <div class="bird"> <img src="https://www.seekpng.com/png/full/51-517675_cartoon-bird-flying-cute-cartoon-bird-flying.png" width="170" height="170"> <div class="ja2"> <img src="https://cdn.discordapp.com/attachments/798205933716635681/809796863691587594/92_20210211125710.png" width="150" height="150"> </div> </div> <main> <div class="balloon"></div> <div class="basket"></div> <div class="cloud"></div> <div class="cloud2"></div> </main> </div> </div> </body> <script> </script> </html>