adds interactivity to css

borders now only appear on hover
transition time added
This commit is contained in:
Nye Evans 2021-09-14 11:07:56 +01:00
parent 2b83ad51a1
commit a69bd66d73
10 changed files with 69 additions and 8 deletions

View file

@ -1,8 +1,8 @@
var currentSlide = 0;
var allSlides = document.querySelectorAll(".programGallery");
window.nextSlide = function nextSlide(){
// code for gallery to function during use
window.nextSlide = function nextSlide(){
currentSlide++;
updateSlide();
}
@ -30,5 +30,12 @@ function hideAll(){
}
}
// code to set up gallery when site is being loaded
hideAll()
updateSlide();
updateSlide();
// todo
/*use webp image format
*/