I have the jquery easing pluggin installed at sites/all/libraries/easing/jquery.easing.js. I have tried it with jquery update installed and not. This is the error I get in console for every easing that I have tried:
Object #
has no method 'exampleEase'
here is my script which i have tried inserting with the info file and with js_injector:
(function($) {
$(document).ready(function(){
$(".node-teaser img").mouseenter(function() {
$(".node-teaser h2").animate({ 'padding-left' : 30 }, 100, 'easeOutCubic' );
$(".field-type-datetime").delay(50).animate({ 'padding-left' :30},100, 'easeOutCubic');
});
$(".node-teaser img").mouseleave(function() {
$(".node-teaser h2").delay(50).animate({ 'padding-left' : 20}, 'fast', 'easeInCubic');
$(".field-type-datetime").animate({ 'padding-left' : 20}, 'fast', 'easeInCubic' );
});
});
})( jQuery );
Comments
Comment #1
ururk commentedAre you loading the easing library?
Comment #2
fotfotfot2000 commentedI had the same issue but i was not loading the library.
TY uruk for the solution!
Comment #3
skaughtComment #4
broonComment #1 should be included on the project page, this is crucial information.
Comment #5
skaughtalthough #1 works... it isn't (probably) the best way to add the library. ..whatever what your adding the JS should (using drupal_add_js or an #attach) should then trigger the library_load.
Loading a library globally from your theme is a end all be all solution.