Skip to content

Commit

Permalink
Update carousel.js
Browse files Browse the repository at this point in the history
add documentation for stopCarouselAnimation function
  • Loading branch information
bwbohl committed Nov 30, 2022
1 parent 904466a commit 54ff026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function animateCarousel(carousel, milliseconds) {
milliseconds);
}

/*
* stops a carousels animation
* @param {Object} carousel - HTMLElement.
*/
function stopCarouselAnimation(carousel) {
"use strict";
const id = carousel.id;
Expand Down

0 comments on commit 54ff026

Please sign in to comment.