Animate only the first 50 photos and albums
This commit is contained in:
parent
8eccd7bad2
commit
402259e334
@ -37,7 +37,7 @@ album = {
|
||||
|
||||
if (!refresh) {
|
||||
loadingBar.show();
|
||||
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomOut");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomOut");
|
||||
lychee.animate(".divider", "fadeOut");
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ album = {
|
||||
view.album.init();
|
||||
|
||||
if (!refresh) {
|
||||
//lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomIn");
|
||||
view.header.mode("album");
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ albums = {
|
||||
durationTime,
|
||||
waitTime;
|
||||
|
||||
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomOut");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomOut");
|
||||
lychee.animate(".divider", "fadeOut");
|
||||
|
||||
startTime = new Date().getTime();
|
||||
@ -73,7 +73,7 @@ albums = {
|
||||
|
||||
view.header.mode("albums");
|
||||
view.albums.init();
|
||||
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomIn");
|
||||
|
||||
}, waitTime);
|
||||
|
||||
|
@ -49,7 +49,7 @@ search = {
|
||||
|
||||
$(".no_content").remove();
|
||||
|
||||
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomOut");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomOut");
|
||||
lychee.animate(".divider", "fadeOut");
|
||||
|
||||
search.code = md5(code);
|
||||
@ -59,7 +59,7 @@ search = {
|
||||
if (code==="error") $("body").append(build.no_content("search"));
|
||||
else {
|
||||
lychee.content.html(code);
|
||||
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
|
||||
lychee.animate(".album:nth-child(-n+50), .photo:nth-child(-n+50)", "contentZoomIn");
|
||||
$("img[data-type!='svg']").retina();
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user