Created
July 18, 2024 16:39
-
-
Save modos/3dc8ae9e5d10d05c1c2a75769eb8d9fc to your computer and use it in GitHub Desktop.
هویت بمبگذار
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* do not change this code */ | |
*, *::before, *::after{ | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} | |
html{ | |
font-size: 62.5%; | |
} | |
body{ | |
width: 100vw; | |
height: 100vh; | |
background: radial-gradient(circle, rgba(70,50,13,1) 0%, rgba(0,0,0,1) 100%); | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.container{ | |
position: relative; | |
width: 70rem; | |
height: 70rem; | |
} | |
.container > img{ | |
position: absolute; | |
} | |
.container > img:nth-child(1){ | |
top: 50rem; | |
left: 50rem; | |
} | |
.container > img:nth-child(2){ | |
top: -10rem; | |
left: 40rem; | |
} | |
.container > img:nth-child(3){ | |
top: 30rem; | |
left: 0; | |
} | |
.container > img:nth-child(4){ | |
top: 0rem; | |
left: -20rem; | |
} | |
/* فایل style.css */ | |
@keyframes movePuzzle1 { | |
50% { | |
top: 30rem; | |
left: 30rem; | |
} | |
100% { | |
top: 0; | |
left: 2rem; | |
} | |
} | |
.container > img:nth-child(1) { | |
animation: movePuzzle1 3s forwards; | |
} | |
@keyframes movePuzzle2 { | |
50% { | |
top: -5rem; | |
left: 25rem; | |
} | |
100% { | |
top: 25.5rem; | |
left: 2rem; | |
} | |
} | |
.container > img:nth-child(2) { | |
animation: movePuzzle2 3s forwards; | |
} | |
@keyframes movePuzzle3 { | |
50% { | |
top: 15rem; | |
left: 15rem; | |
} | |
100% { | |
top: 0; | |
left: 32rem; | |
} | |
} | |
.container > img:nth-child(3) { | |
animation: movePuzzle3 3s forwards; | |
} | |
@keyframes movePuzzle4 { | |
50% { | |
top: 17rem; | |
left: 15rem; | |
} | |
100% { | |
top: 30.5rem; | |
left: 26.8rem; | |
} | |
} | |
.container > img:nth-child(4) { | |
animation: movePuzzle4 3s forwards; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment