Search code examples
javascriptjsbinvelocity.js

Getting velocity.js working on JSBin


This has got to be simple; what am I doing wrong?

http://jsbin.com/tayemi/2/

Velocity doesn't seem to want to do anything.


Solution

  • 1) you have to change this:

     $("p").velocity( { width: 50px }, 1000);
    

    on this:

     $("p").velocity( { width: "50px" }, 1000);
    

    2) you are using resources from github. but these resources are loaded not as *.js files but as plain text (with MIME type text/plain instead of text/javascript). So, you have to change this. Here is my example on JSBin http://jsbin.com/fatihopipe/1/edit?html,css,js,output