MAKE THE LAYER:
- Create a new DIV, let’s call it grey out.
- Make that DIV 100VW x 100VH
- Make the position FIXED and FULL
- Give it a Z-Index of 9999 (Just to be safe)
- Under background, let’s give it a solid background of Black @ 80% (This is just an example choice.)
- Go to the Navigator Panel and double click on your nav bar layer.
- Set the z-space of the nav panel to 10000.
- Now double click on your menu icon.
- Go to your interactions panel and create a new ‘Mouse Click (Tap)’ interaction.
- ‘On 1st Click’, create a new animation.
- Create a new Opacity animation and right click that layer and change the target layer to the full-screen DIV we made in the beginning.
- Make a copy of that animation action.
- Set the opacity of the first animation action to 0%.
- Set the opacity of the second animation action to 100%.
- Select the first animation action and go down to the ‘Timing’ section and check ‘Set as initial state’. (This will load the DIV as transparent when the site loads.)
- Close that animation panel and go to ‘On 2nd Click’.
- Duplicate the animation we just made and swap the two opacity animation actions so that we now go from 100% to 0% when we click out. Uncheck ‘Set as initial state’ for the first animation action. Close out of this animation all-together.
- Now go to the full-screen DIV we created earlier. Apply a timed animation to this layer (just like we did for the nav menu icon) but apply the second animation we made as the 1st click animation for this layer. This layer doesn’t need a second click animation, so leave it blank.
I didn’t include animation ease settings because that you can do on your own, I’m sure. I hope this helps! Let me know if this causes interactivity issues. You may need to add a move action to your animations to keep it off screen until you need it. If that is the case, do what we did for opacity animations, but use the move action instead. Just move it a split second before and after the opacity change. Perhaps put it off to the left of the screen 100VW. Remember to do this before and after on both layers you added animations to.