[Solved] How to make scroll menu? [closed]
You hadn’t imported jQuery library. In online tesing environments, like JSFiddle and CodePen, adding <script src=”https://stackoverflow.com/questions/31142083/sth.js”></script> won’t work as they have separated HTML, JS and CSS into separate “consoles”. You have to use the menu to import external libraries. https://blog.codepen.io/documentation/editor/adding-external-resources/ Your edited CodePen // Create a clone of the menu, right next to original. $(‘.menu’).addClass(‘original’).clone().insertAfter(‘.menu’).addClass(‘cloned’).css(‘position’,’fixed’).css(‘top’,’0′).css(‘margin-top’,’0′).css(‘z-index’,’500′).removeClass(‘original’).hide(); … Read more