mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-02 21:03:59 -07:00
Smoother animation for homepage recently added media toggles
This commit is contained in:
parent
0f851ec2a3
commit
fd587fe108
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@
|
|||
var containerWidth = $("body").find(".container-fluid").width();
|
||||
|
||||
if (margin_right == 0) {
|
||||
toggle_items.animate({ width: 'toggle', marginRight: margin_right }, 1000, function () {
|
||||
toggle_items.stop().animate({ width: 'toggle', marginRight: margin_right }, 1000, function () {
|
||||
toggle_items.hide();
|
||||
|
||||
var scroller_width = $('.dashboard-recent-media-instance li:visible').length * 175;
|
||||
|
@ -164,7 +164,7 @@
|
|||
})
|
||||
} else {
|
||||
scroller.width(50 * 175);
|
||||
toggle_items.animate({ width: 'toggle', marginRight: margin_right }, 1000, function () {
|
||||
toggle_items.stop().animate({ width: 'toggle', marginRight: margin_right }, 1000, function () {
|
||||
toggle_items.show();
|
||||
|
||||
var scroller_width = $('.dashboard-recent-media-instance li:visible').length * 175;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue