Hey there! I'm just starting out with HTML, CSS, and JavaScript, and I've been trying to make a transition work using JavaScript. The element I'm working with is a "menu-icon" which is a span tag with a small image nested inside another div within the header section of my webpage. Below is the code snippet (I'm using Microsoft Edge).
<script>
const openMenu = document.querySelector('.menu-icon');
openMenu.addEventListener('click', () => {
openMenu.style.transform.scaleX = 100%;
});
</script>
When checking in Edge DevTools, it pointed out a syntax error on line 5, column 1. After removing the bracket, it then highlighted an issue with the following parentheses. Upon correction, it now states that there is no end for the input.