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
a244f2ed
Commit
a244f2ed
authored
Jul 12, 2014
by
Tobias Reich
Browse files
Animate only the first 100 photos and albums
parent
8b39f6ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
assets/js/album.js
View file @
a244f2ed
...
...
@@ -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
"
);
}
...
...
assets/js/albums.js
View file @
a244f2ed
...
...
@@ -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
);
...
...
assets/js/search.js
View file @
a244f2ed
...
...
@@ -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
();
}
...
...
assets/min/main.js
View file @
a244f2ed
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