I have done absolutely everything to try and fix my code: put the links in every possible order, link corresponding versions of the JQuery libraries (Ui’s, Core’s, Plugins). Literally everything. I am a beginner to JQuery so I am still learning but tt the moment I am stuck with a r.easing is not a function error when running my code and im about ready to give up on coding all together.
I did but it still gave me the .easing error thing
Its giving me this:
Uncaught TypeError: r.easing[this.easing] is not a function
at init.run (jquery.min.js:3)
at i (jquery.min.js:3)
at Function.r.fx.timer (jquery.min.js:3)
at hb (jquery.min.js:3)
at HTMLDivElement.g (jquery.min.js:3)
at Function.dequeue (jquery.min.js:3)
at HTMLDivElement. (jquery.min.js:3)
at Function.each (jquery.min.js:2)
at r.fn.init.each (jquery.min.js:2)
at r.fn.init.queue (jquery.min.js:3)
Everytime you use a jQuery object method, such as .fadeOut() I strongly recommend to go look into documentation: http://api.jquery.com/fadeout/ . When you visit this link you will find out that .fadeOut() takes in two arguments: [duration] and [complete]. [duration] is the duration of effect - in your case ''fast" OR 0.25. NOT both!. As [complete] argument you can pass a function to call when the effect is done. Problem occured because your second argument wasn’t a function.
$(’.heading’).fadeOut(0.25); would also work. The argument could also be “fast” instead of 0.25.
I think i moved script’s to head tag. They could be right where you put them, before /body - and then you don’t have to use $(document).ready() method, because the document will be ‘ready’ anyway, because browser loads everything in order from top to bottom.