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

ururk’s picture

Are you loading the easing library?

function theme_preprocess_page(&$vars) {	
	// Load easing library
	libraries_load('easing');
}
fotfotfot2000’s picture

Issue summary: View changes

I had the same issue but i was not loading the library.
TY uruk for the solution!

skaught’s picture

Status: Active » Closed (works as designed)
broon’s picture

Comment #1 should be included on the project page, this is crucial information.

skaught’s picture

although #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.