I am looking to create an expanding menu text similar to what can be found on this webpage: example
Below is my JavaScript code that currently works but has some drawbacks. The code is lengthy, not very professional, and lacks responsiveness. For instance, when the screen resolution is reduced, most of the letters extend beyond the screen.
I have placed each letter in a separate div element.
Question: Is there a way to group all the 'div's into an array and make them expand based on the width of their parent div ('NavPersonalBlog')?
Thank you for any suggestions and apologies for any language errors :)
$(".NavPersonalBlog").on("mouseenter", function() {
// Animation code here
});
$(".NavPersonalBlog").on("mouseleave", function() {
// Animation code here
});