1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

syntax for jquery easing?

Discussion in 'jQuery' started by wolfestone, Mar 9, 2009.

  1. #1
    I am using the jFlow content slider script: http://www.gimiti.com/kltan/wordpress/?p=46

    and it says you can install an easing plugin to get different transitions. I've installed what I believe to be the correct easing plugin, http://gsgd.co.uk/sandbox/jquery/easing/

    but I can't get the transitions to work with anything other than easing="swing", which I think is the jQuery default.

    The default code is this:

    $("#myController").jFlow({
    		slides: "#mySlides",
    		controller: ".jFlowControl", // must be class, use . sign
    		slideWrapper : "#jFlowSlide", // must be id, use # sign
    		selectedWrapper: "jFlowSelected",  // just pure text, no sign
    		width: "500px",
    		height: "600px",
    		easing: "swing",
    		duration: 1000,
    		prev: ".jFlowPrev", // must be class, use . sign
    		next: ".jFlowNext" // must be class, use . sign
    	});
    
    Code (markup):
    And I've tried changing the "swing" to all kinds of things but I either get a javascript error in the browser, or I get no transition at all.

    I have both the easing script and the easing compatibility script listed in my head tag, before the jflow script.

    Am I doing something obviously wrong? It would be great to get this figured out. Thanks for any help.
     
    wolfestone, Mar 9, 2009 IP
  2. wayfarer07

    wayfarer07 Peon

    Messages:
    34
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just use a different slide plugin. Here is a lightweight one that I like: http://www.gmarwaha.com/jquery/jcarousellite/

    You may just be having some conflicts with other code on the page. It's a lot of information for us to debug.
     
    wayfarer07, Mar 10, 2009 IP
  3. wolfestone

    wolfestone Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That plugin looks great, and has a lot of customization I certainly can benefit from. Thanks very much for the link!
     
    wolfestone, Mar 11, 2009 IP