Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
math-pixel authored Oct 1, 2021
1 parent 5177854 commit 9a60940
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
41 changes: 21 additions & 20 deletions css.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
0% { height: 0px }
100% { height: 750px }
}
@keyframes fade {
0%,100%{opacity: 0}
40%,60%{opacity: 1}
}



html{
scroll-behavior: smooth;
Expand Down Expand Up @@ -374,8 +380,7 @@ body{
.img_slide{
width: auto;
height: 100%;
max-width: 1000px;

max-width: 1000px;
}

/* Caption text */
Expand All @@ -401,22 +406,11 @@ body{
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;

animation-name: fade;
animation-duration: 1.5s;
animation-duration: 4s;
}

@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}









Expand Down Expand Up @@ -498,11 +492,6 @@ body{








.footer{
font-family: Arial Narrow;
}
Expand Down Expand Up @@ -555,4 +544,16 @@ body{
.lvl_prog{
padding: 50px;
}

.mySlides {
display: none;
height: 300px;
width: auto;
text-align: center;
}
.img_slide{
width: auto;
height: 100%;
max-width: 300px;
}
}
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ function showSlides() {
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}


slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(showSlides, 2000); // Change image every 2 seconds
setTimeout(showSlides, 4000); // Change image every 2 seconds
}

0 comments on commit 9a60940

Please sign in to comment.