Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 3rd, 2012  |  syntax: JavaScript  |  size: 0.39 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var running = false,
  2.     animCss = o.vertical ? "top" : "left",
  3.     sizeCss = o.vertical ? "height" : "width";
  4. var div = $(this),
  5.     ul = $("ul", div),
  6.     tLi = $("li", ul),
  7.     tl = tLi.size(),
  8.     v = Math.floor($('.blog-nav').width() / $("li", ul).width());
  9.  
  10. if (o.circular) {
  11.     ul.prepend(tLi.slice(tl - v - 1 + 1).clone()).append(tLi.slice(0, v).clone());
  12.     o.start += v;
  13. }