I am building a site that has a custom nav menu – based on example I found here (see “Nav – Full page overlay (custom made”) and using an animated icon from transformicons.
In tablet widths – I’m noticing a problem with a click interaction I have on the menu toggle button – on the first click the menu fades in as expected and on second click fades out as expected, but then on every subsequent open there is a delay before the fade interaction happens that is not present on the first open.
By setting the targeted element to be opacity zero, in the designer, so when the interaction runs the first time it runs in the same conditions that for the times after.
The targeted element is “nav mobile menu” (hero section > nav-mobile > ) already has it’s opacity set to zero (at the tablet breakpoint). Is that what you meant?
Many thanks @vincent – I found setting display:none as you suggest then changing the order of the interactions on first click so the order was 1st: display:block then opacity:100% – appears to have fixed things