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