0

I have a jQuery function that doesn't work:

Console : ReferenceError: $ is not defined

This is the function and I don't know what's wrong with it.

$(document).ready(function() {
    $(document).mousemove(function(event) {
        TweenLite.to($("body"), .5, {
            css: {
                backgroundPosition: "" + parseInt(event.pageX / 8) + "px " + parseInt(event.pageY / '12') + "px, " + parseInt(event.pageX / '15') + "px " + parseInt(event.pageY / '15') + "px, " + parseInt(event.pageX / '30') + "px " + parseInt(event.pageY / '30') + "px","background-position": parseInt(event.pageX / 8) + "px " + parseInt(event.pageY / 12) + "px, " + parseInt(event.pageX / 15) + "px " + parseInt(event.pageY / 15) + "px, " + parseInt(event.pageX / 30) + "px " + parseInt(event.pageY / 30) + "px"
            }
        })
    })
})
amphetamachine
  • 27,620
  • 12
  • 60
  • 72
Tripesdeporc
  • 94
  • 1
  • 1
  • 14
  • 2
    That error means you have not included jquery.js in your page correctly. Either you're missing the ` – Rory McCrossan Jun 09 '15 at 14:18
  • Thanks, I did not pay attention that I've referenced a folder with a typing error... I feel silly – Tripesdeporc Jun 09 '15 at 14:23

0 Answers0