Commit a244f2ed authored by Tobias Reich's avatar Tobias Reich
Browse files

Animate only the first 100 photos and albums

parent 8b39f6ff
......@@ -37,7 +37,7 @@ album = {
if (!refresh) {
loadingBar.show();
lychee.animate(".album, .photo", "contentZoomOut");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomOut");
lychee.animate(".divider", "fadeOut");
}
......@@ -74,7 +74,7 @@ album = {
view.album.init();
if (!refresh) {
lychee.animate(".album, .photo", "contentZoomIn");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
view.header.mode("album");
}
......
......@@ -15,7 +15,7 @@ albums = {
durationTime,
waitTime;
lychee.animate(".album, .photo", "contentZoomOut");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomOut");
lychee.animate(".divider", "fadeOut");
startTime = new Date().getTime();
......@@ -73,7 +73,7 @@ albums = {
view.header.mode("albums");
view.albums.init();
lychee.animate(".album, .photo", "contentZoomIn");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
}, waitTime);
......
......@@ -49,7 +49,7 @@ search = {
$(".no_content").remove();
lychee.animate(".album, .photo", "contentZoomOut");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "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, .photo", "contentZoomIn");
lychee.animate(".album:nth-child(-n+100), .photo:nth-child(-n+100)", "contentZoomIn");
$("img[data-type!='svg']").retina();
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment