I am using Cycle's pagerAnchorBuilder function to create custom pager links. However, there is already an element inside the pager container (and empty span) and I need to ensure Cycle inserts the generated li elements before the span, not after.
(I am using the span element for even spacing of menu elements within a container. I have tried appending the span after Cycle is called but that doesn't work, presumably because CSS is parsed before Javascript.)
HTML
<nav class="one">
<ul>
>> INSERT HERE <<
<span></span>
</ul>
</nav>
JS
pager: 'nav ul',
pagerEvent: 'mouseover',
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#">'+ $(slide).attr('title') +'</a></li>';
}
Can anyone help? Thanks!
should be- . Can you find a way of fixing the spacing without putting a inside the
– Bryan Jan 29 '14 at 16:44?