Create main.js

Controls both mobile and desktop navigation animations.