Fixed fadeIn fadeOut animations
This commit is contained in:
parent
eb3baba0e8
commit
4a6a86e7c7
@ -36,7 +36,7 @@ album.load = function(albumID, refresh) {
|
|||||||
password.get(albumID, function() {
|
password.get(albumID, function() {
|
||||||
|
|
||||||
if (!refresh) {
|
if (!refresh) {
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomOut');
|
lychee.animate('.album, .photo', 'contentZoomOut');
|
||||||
lychee.animate('.divider', 'fadeOut');
|
lychee.animate('.divider', 'fadeOut');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ album.load = function(albumID, refresh) {
|
|||||||
view.album.init();
|
view.album.init();
|
||||||
|
|
||||||
if (!refresh) {
|
if (!refresh) {
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomIn');
|
lychee.animate('.album, .photo', 'contentZoomIn');
|
||||||
view.header.mode('album');
|
view.header.mode('album');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ albums.load = function() {
|
|||||||
durationTime,
|
durationTime,
|
||||||
waitTime;
|
waitTime;
|
||||||
|
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomOut');
|
lychee.animate('.album, .photo', 'contentZoomOut');
|
||||||
lychee.animate('.divider', 'fadeOut');
|
lychee.animate('.divider', 'fadeOut');
|
||||||
|
|
||||||
startTime = new Date().getTime();
|
startTime = new Date().getTime();
|
||||||
@ -79,7 +79,7 @@ albums.load = function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
view.header.mode('albums');
|
view.header.mode('albums');
|
||||||
view.albums.init();
|
view.albums.init();
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomIn');
|
lychee.animate('.album, .photo', 'contentZoomIn');
|
||||||
}, waitTime);
|
}, waitTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ albums.load = function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
view.header.mode('albums');
|
view.header.mode('albums');
|
||||||
view.albums.init();
|
view.albums.init();
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomIn');
|
lychee.animate('.album, .photo', 'contentZoomIn');
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -55,17 +55,19 @@ search.find = function(term) {
|
|||||||
|
|
||||||
$('.no_content').remove();
|
$('.no_content').remove();
|
||||||
|
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomOut');
|
lychee.animate('.album, .photo', 'contentZoomOut');
|
||||||
lychee.animate('.divider', 'fadeOut');
|
lychee.animate('.divider', 'fadeOut');
|
||||||
|
|
||||||
search.code = md5(code);
|
search.code = md5(code);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|
||||||
if (code==='error') $('body').append(build.no_content('search'));
|
if (code==='error') {
|
||||||
else {
|
lychee.content.html('');
|
||||||
|
$('body').append(build.no_content('search'));
|
||||||
|
} else {
|
||||||
lychee.content.html(code);
|
lychee.content.html(code);
|
||||||
lychee.animate('.album:nth-child(-n+50), .photo:nth-child(-n+50)', 'contentZoomIn');
|
lychee.animate('.album, .photo', 'contentZoomIn');
|
||||||
$('img[data-type!="svg"]').retina();
|
$('img[data-type!="svg"]').retina();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user