Skip to content
Snippets Groups Projects
Commit 4fa64725 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix avatar animation on hover when not logged in (#11349)

parent 8df0022e
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ function main() {
return ({ target }) => {
const swapSrc = target.getAttribute(swapTo);
//only change the img source if autoplay is off and the image src is actually different
if(target.getAttribute('data-autoplay') === 'false' && target.src !== swapSrc) {
if(target.getAttribute('data-autoplay') !== 'true' && target.src !== swapSrc) {
target.src = swapSrc;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment