www.webdeveloper.com
Results 1 to 2 of 2

Thread: jQuery - Plugin alteration help

  1. #1
    Join Date
    Jun 2009
    Posts
    9

    jQuery - Plugin alteration help

    I want to adjust the layout of the default lazy susan animation for this plugin
    There are 5 slides. How would i need to adjust the JavaScript so that there are always 2 slides on the left, and two slides on the right of the main slide that happens to be in focus? The shapes plugin offers a figure 8 shape that does this, but the animation style is not what the client wants.

    Here's the URL with the working code


    I've adjusted line 88 in the JS file, and it sort of gets me there:

    Code:
    var period = jQuery.roundabout_toFloat(180.0/ref.children(options.childSelector).length)
    
    //this is the original line
    var period = jQuery.roundabout_toFloat(360.0/ref.children(options.childSelector).length);
    Can anyone point me in the right direction or help? Much appreciated!

    Regards,
    Matt

  2. #2
    Join Date
    Jun 2009
    Posts
    9
    It's probably easier to just adjust the files directly if anyone wants to play with this code:
    http://www.9inchneal.com/test-files.zip

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles