Animate transitions if width > mobile
Merge branch 'Javascript-branch'