Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
402259e3
Commit
402259e3
authored
Jul 12, 2014
by
Tobias Reich
Browse files
Animate only the first 50 photos and albums
parent
8eccd7ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
assets/js/album.js
View file @
402259e3
...
...
@@ -37,7 +37,7 @@ album = {
if
(
!
refresh
)
{
loadingBar
.
show
();
lychee
.
animate
(
"
.album:nth-child(-n+
10
0), .photo:nth-child(-n+
10
0)
"
,
"
contentZoomOut
"
);
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
contentZoomOut
"
);
lychee
.
animate
(
"
.divider
"
,
"
fadeOut
"
);
}
...
...
@@ -74,7 +74,7 @@ album = {
view
.
album
.
init
();
if
(
!
refresh
)
{
//
lychee.animate(".album:nth-child(-n+
10
0), .photo:nth-child(-n+
10
0)", "contentZoomIn");
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
contentZoomIn
"
);
view
.
header
.
mode
(
"
album
"
);
}
...
...
assets/js/albums.js
View file @
402259e3
...
...
@@ -15,7 +15,7 @@ albums = {
durationTime
,
waitTime
;
lychee
.
animate
(
"
.album:nth-child(-n+
10
0), .photo:nth-child(-n+
10
0)
"
,
"
contentZoomOut
"
);
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
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+
10
0), .photo:nth-child(-n+
10
0)
"
,
"
contentZoomIn
"
);
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
contentZoomIn
"
);
},
waitTime
);
...
...
assets/js/search.js
View file @
402259e3
...
...
@@ -49,7 +49,7 @@ search = {
$
(
"
.no_content
"
).
remove
();
lychee
.
animate
(
"
.album:nth-child(-n+
10
0), .photo:nth-child(-n+
10
0)
"
,
"
contentZoomOut
"
);
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
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+
10
0), .photo:nth-child(-n+
10
0)
"
,
"
contentZoomIn
"
);
lychee
.
animate
(
"
.album:nth-child(-n+
5
0), .photo:nth-child(-n+
5
0)
"
,
"
contentZoomIn
"
);
$
(
"
img[data-type!='svg']
"
).
retina
();
}
...
...
assets/min/main.js
View file @
402259e3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment