mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
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:
parent
61a0dd4937
commit
cb75ea9274
3
website/assets/js/pages/homepage.page.js
vendored
3
website/assets/js/pages/homepage.page.js
vendored
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user