<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/jquery.magicmove.js"></script>
<script>
jQuery(function ($) {
$('button.animate1').click(function () {
$('.containers').magicMove({
easing: 'ease',
duration: 300
}, function () {
var index = $(this).children().length + 1;
var $el = $('<section>' + index + 'th</section>');
$(this).find('section').eq(0).after($el);
});
});
$('button.animate2').click(function () {
$('.containers').magicMove({
easing: 'ease',
duration: 500
}, function () {
var index = $(this).children().length + 1;
var $el = $('<section>' + index + 'th</section>');
$(this).find('section').eq(2).after($el);
});
});
$('button.animate3').click(function () {
$('.containers').magicMove({
easing: 'ease',
duration: 500
}, function () {
var index = $(this).children().length + 1;
var $el = $('<section>' + index + 'th</section>');
$(this).find('section').eq(1).after($el);
});
});
});
</script>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
