Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions animation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
* {
margin: 0;
padding: 0;
box-sizing:border-box;
}
body {
display:flex;
justify-content:center;
align-items: center;
min-height:100vh;
background-image:url('TT.JPG');
background-size: cover;
}
.box
{
position:relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
animation: animate 20s linear infinite;
}

@keyframes animate {
0%{
transform: perspective(1000px) rotateX(0deg) rotateY(15deg);
}
100%
{
transform: perspective(1000px) rotateX(360deg)rotateY(15deg);
}
}

.box span {
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
transform-origin: center;
transform-style: preserve-3d;
transform: rotateX(calc(var(--i) * 45deg))translateZ(300px);
}
.box1 span
{
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
transform-origin: center;
transform-style: preserve-3d;
transform: rotateX(calc(var(--i) * 45deg))translateZ(300px);
}

.box3
{
position:relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
animation: animate 20s linear infinite;
}
@keyframes animate {
0%{
transform: perspective(1000px) rotateX(0deg) rotateY(15deg);
}
100%
{
transform: perspective(1000px) rotateX(360deg)rotateY(15deg);
}
}

.box span {
position: absolute;
top:0;
right:0;
width: 100%;
height: 100%;
transform-origin:center;
transform-style: preserve-3d;
transform: rotateX(calc(var(--i) * 45deg))translateZ(100px);
}

header{
font-weight: 400;
color:black;
font-style:oblique;
padding-right: 122px;
padding-left: 20px;
}
52 changes: 52 additions & 0 deletions animation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3d gallery images</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>'FAMALIY PHOTOS BACKGROUND'</header>
<div class="box">

<span style="--i:1;"><img src="Y.JPG"</span>
<span style="--i:2;"><img src="mA.JPG"</span>
<span style="--i:3;"><img src="LL.JPG"</span>
<span style="--i:4;"><img src="TT.JPG"</span>
<span style="--i:5;"><img src="FA.JPG"</span>
<span style="--i:4;"><img src="GP.JPG"</span>
<span style="--i:5;"><img src="BABA.JPG"</span>



</div>

<div class="box1">
<span style="--i:1;"><img src="Y.JPG"</span>
<span style="--i:2;"><img src="mA.JPG"</span>
<span style="--i:3;"><img src="LL.JPG"</span>
<span style="--i:4;"><img src="TT.JPG"</span>
<span style="--i:5;"><img src="FA.JPG"</span>
<span style="--i:4;"><img src="GP.JPG"</span>
<span style="--i:5;"><img src="BABA.JPG"</span>

</div>
<div class="box3"
<span style="--i:1;"><img src="Y.JPG"</span>
<span style="--i:2;"><img src="mA.JPG"</span>
<span style="--i:3;"><img src="LL.JPG"</span>
<span style="--i:4;"><img src="TT.JPG"</span>
<span style="--i:5;"><img src="FA.JPG"</span>
<span style="--i:4;"><img src="GP.JPG"</span>
<span style="--i:5;"><img src="BABA.JPG"</span>

</div>






</body>
</html>