I'm trying to figure out how to make this menu slide in when the hamburger menu is clicked. The background of the menu is an SVG, not just a shape. Does anyone have any suggestions or ideas on how I can achieve this effect?
For reference, here is the link to the code snippet: https://codepen.io/KirbStarRulz/pen/GdzOyM
$(document).ready(function() {
$('.hamburger-container').on('click', function(e) {
e.preventDefault();
$('.hideMenu').toggleClass('slideInMenu');
});
});
function myFunction(x) {
x.classList.toggle("change");
}
I also need the orange trapezoid on the right side of this image to slide in along with the menu: https://ibb.co/nRrr1T
If anyone has any insights or solutions, I would greatly appreciate it! Thank you!