Stop scrollToItem() animate twice.
- Suppress first fade-to-black with `animate(colWhite, 1)` - Stop animate twice in `colShiny` with `).promise().done(`
This commit is contained in:
parent
592762be27
commit
f3ea4a4f45
1 changed files with 2 additions and 2 deletions
|
@ -650,9 +650,9 @@ function scrollToItem(elementId) {
|
|||
// Scroll to the DIV with the ID (GUID)
|
||||
$('html, body').animate({
|
||||
scrollTop: itemPos
|
||||
}, 400, function() {
|
||||
}, 400).promise().done( function() {
|
||||
// Highlight post/commenent with ID (GUID)
|
||||
$el.animate(colWhite, 1000).animate(colShiny).animate(colWhite, 600);
|
||||
$el.animate(colWhite, 1).animate(colShiny,200).animate(colWhite, 600);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue