i’ll try to be more specific:
i have this html markup snippet:
<div id="slider">
<ul>
<li>first slide</li>
<li>secondth slide</li>
<li>third slide</li>
<li>fourth slide</li>
</ul>
</div>
and this js snipett to activate cycle
$('#slider ul').cycle({
easing: 'easeInBounce',
fx: 'scrollUp',
speed:400,
timeout:5000
});
now id like to have the #slider ul width auto calculated the same as its ul li elements.
Hope you guys understand what i mean!
Thank you!
Edit:
Ok, so you could use before ( or after callback):
Html:
And JS:
This could fit the ul width based on next or current li (after or before use): EXAMPLE