Skip to content

Commit

Permalink
update style.css: implement sliding image animation and adjust styles…
Browse files Browse the repository at this point in the history
… for improved layout and visual appeal
  • Loading branch information
Martin-Atanasov123 committed Dec 30, 2024
1 parent a6a97f7 commit e249d79
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions things/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,47 +208,44 @@ nav ul li a {


/* slideshow*/


@keyframes slide-horizontal {
0% { transform: translateX(0); }
20% { transform: translateX(-300px); }
40% { transform: translateX(-600px); }
60% { transform: translateX(-300px); }
80% { transform: translateX(0); }
}
/* slideshow */



.sliding-img {
overflow: hidden;
width: auto; /* Adjust width as needed */
height: auto; /* Adjust height as needed */
width: 300px; /* Adjust for the number of options */
position: relative;
border: 2px solid #333;

display: flex;
align-items: center;
}

.sliding-img .img-wrapper {
display: flex;
width: calc(300px *2); /* Adjust for the number of options */
width: calc(300px ); /* Adjust for the number of options */
animation: slide-horizontal 30s ease-in-out infinite;
}

.sliding-img div {
flex: 0 0 300px; /* Matches the container width */
text-align: center;
}

@keyframes slide-horizontal {
0% { transform: translateX(0); }
20% { transform: translateX(-300px); }
40% { transform: translateX(-600px); }
60% { transform: translateX(-900px); }
80% { transform: translateX(-600px); }
90% { transform: translateX(-300px); }
100% { transform: translateX(0); }
}
/* slideshow */




.services-info img {
display: flex;
align-self: center;
height: 200px;
padding: 1em;

border-radius: 1em;
border: 3px solid #442020;
}


Expand Down

0 comments on commit e249d79

Please sign in to comment.