Skip to content

Commit

Permalink
adding my artsyness to the project (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapetanakisFanis committed Jun 30, 2024
1 parent cba2a20 commit 2f02af1
Show file tree
Hide file tree
Showing 4 changed files with 1,033 additions and 0 deletions.
Binary file added Art/FanisKapetanakis/Carousel.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions Art/FanisKapetanakis/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<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">
<link rel="stylesheet" type="text/css" href="style.css">

<title>CSS Carousel</title>
</head>
<body>

<h1>Image Gallery</h1>



<div class="gallery">
<img src="https://images.pexels.com/photos/220201/pexels-photo-220201.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="earth image from satellite">
<img src="https://images.pexels.com/photos/41162/moon-landing-apollo-11-nasa-buzz-aldrin-41162.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="moon landing apollo 11">
<img src="https://images.pexels.com/photos/6153354/pexels-photo-6153354.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="robot hand with human">


</div>



</body>
</html>




37 changes: 37 additions & 0 deletions Art/FanisKapetanakis/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.gallery {

display: grid;
width: 250px;

}
.gallery > img {
grid-area: 1/1;
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border: 10px solid #f67a7a;
box-shadow: 0 0 4px #0007;
animation: slide 6s infinite;
}

.gallery > img:nth-child(2) { animation-delay: -2s; }
.gallery > img:nth-child(3) { animation-delay: -4s; }

@keyframes slide {
0% {transform: translateX(30%) ;z-index: 2;}
16.66% {transform: translateX(120%);z-index: 2;}
16.67% {transform: translateX(120%);z-index: 1;}
33.34% {transform: translateX(0%) ;z-index: 1;}
50% {transform: translateX(0%) ;z-index: 1;}
}

body {
margin: 0;
min-height: 100vh;
display:grid;
place-content: center;
background: #ecdbbc;
overflow: hidden;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}
Loading

0 comments on commit 2f02af1

Please sign in to comment.