Skip to content

Commit

Permalink
Faster autoscroll opening entries
Browse files Browse the repository at this point in the history
  • Loading branch information
amatriain committed Aug 9, 2018
1 parent feacff9 commit dbdf166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/ng-services/ng-AnimationsSvc.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ angular.module('feedbunch').service 'animationsSvc',
topOffset = -120
entry_summary
.css('height', '0')
.velocity 'scroll', {offset: topOffset, duration: 250, delay: 50}
.velocity 'scroll', {offset: topOffset, duration: 0}
.velocity({height: height_auto, 'padding-top': padding_top, 'padding-bottom': padding_bottom},
{duration: 300, easing: 'swing', complete: add_entry_open_class})
{duration: 200, easing: 'swing', complete: add_entry_open_class})

#---------------------------------------------
# Close an entry immediately.
Expand All @@ -206,7 +206,7 @@ angular.module('feedbunch').service 'animationsSvc',
close_entry_slow: (entry)->
entry_element = $("#entry-#{entry.id}-summary")
entry_element.velocity {height: 0, 'padding-top': 0, 'padding-bottom': 0},
{duration: 300, easing: 'swing'}
{duration: 200, easing: 'swing'}
remove_entry_open_class entry_element

#---------------------------------------------
Expand Down

0 comments on commit dbdf166

Please sign in to comment.