Hey everyone, I'm facing an issue with my variable (widthPercent) where I store a percentage, for example: 67.33%.
When I try to change the width using jQuery animation, it doesn't work:
$(this).animate({
width: widthPercent,
}, 2500);
});
However, changing the width with CSS works perfectly fine:
$(this).css('width', widthPercent);
Does anyone have any ideas on what might be causing this problem?