Build your perfect spin and then copy the HTML code.
<!-- Main 360 -->
<a class="Magic360" id="spin" data-options="columns: 12; rows: 4; filename: bag-small-{row}-{col}.jpg; large-filename: bag-large-{row}-{col}.jpg" title="..." href="bag-large-{row}-{col}.jpg">
<img src="bag-small-{row}-{col}.jpg">
</a>
<script>
var Magic360Options = {
'columns' : 12,
'rows' : 4,
'filename' : 'bag-small-{row}-{col}.jpg',
'large-filename' : 'bag-large-{row}-{col}.jpg'
};
</script>
Also see more examples and the installation instructions.