Is there any technique that allows you to change the structure of the list on window resize?
This is my default markup that shows 4 items on default resolution (980px):
<ul data-orbit data-options="bullets:false; container_class:'rafting-cont'">
<li>
<div>…</div>
<div>…</div>
<div>…</div>
<div>…</div>
</li>
</ul>
but I want to change it to have only two on resolutions smaller than 768px. Markup should dynamically be changed to:
<ul data-orbit data-options="bullets:false; container_class:'rafting-cont'">
<li>
<div>…</div>
<div>…</div>
</li>
<li>
<div>…</div>
<div>…</div>
</li>
</ul>
I have tried to do it via jquery unwrap and wrap functions, but it doesn’t work, since foundation and orbit have already been initialized.
Any ideas how I could do that?