Question:
How would I change jQuery Cycle's options asynchronously via mouse interactions on HTML elements?
jsFiddle
Here's a working example. Refer to the comments for clarification on intentions
Conducted Research:
This tweet from cycle's author reveals that it's possible to modify cycle's options asynchronously.
I asked him in a follow-up tweet if he could expound on the subject and he said (paraphrasing) "keep lurking."
After examining cycle's source code, I found that he wasn't lying. cycle.opts
, indeed, exists, and there's also a debug
function that's apparently of some mentionable use. However, I have very little idea on utilizing these features.
I can return the state of the object using cycle.opts
, but it's the "...and then change what you need," aspect that I can't figure out. I've reviewed the Options Reference page and the defaults from the other options don't appear like they would interfere.