Running a basic animation within PHP

Running a basic animation within PHP

Hello.

I am trying to run a simple animation with the following code but having no luck, can someone help please?

IN THE <head> PART:

<script> 
$(document).ready(function(){
     $('#glynns_animate').animate({
      left:'350px',
      opacity:'0.1',
      width:'600px',
      height:'15px',
      fontSize:'2em'
      });
});
</script> 

IN THE <body> PART:

<div id="glynns_animate">THIS WEBSITE IS CURRENTLY UNDER CONSTRUCTION</div>

Many thanks.