【文件属性】:
文件名称:jQuery CSS3做出IOS解锁屏幕特效.zip
文件大小:111KB
文件格式:ZIP
更新时间:2022-07-31 03:58:38
js特效-jQuery CSS3做出IOS解锁屏幕特效
代码片段:
function setClosed() {
li.each(function (index) {
$(this).css('top', index * 4).css('width', width - index * 0.5 '%').css('margin-left', index * 0.25 '%');
});
li.addClass('closed');
toggler.removeClass('active');
}
setClosed();
toggler.on('mousedown', function () {
var $this = $(this);
if ($this.is('.active')) {
setClosed();
} else {
$this.addClass('active');
li.removeClass('closed');
li.each(function (index) {
$(this).css('top', 60 * (index 1)).css('width', '100%').css('margin-left', '0px');
});
}
});