Website: update animation on homepage image. (#15147)

Changes:
- Updated the animation in the "ClickOps or DevOps" section of the
homepage to only animate once.
This commit is contained in:
Eric 2023-11-14 14:08:02 -06:00 committed by GitHub
parent 61a0dd4937
commit cb75ea9274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,6 @@ parasails.registerPage('homepage', {
{
// When the image is completly in the user's viewport, add the 'animate' class to it.
imageToAnimate.classList.add('animate');
} else if(imageToAnimate.classList.contains('animate')) {
// When it is no longer in the user's viewport, remove the 'animate' class if it has it.
imageToAnimate.classList.remove('animate');
}
});
}