Skip to content

Commit

Permalink
feat(comments): reduce transition duration from 500 to 200
Browse files Browse the repository at this point in the history
When user collapses and un-collapses the comments section, text is
changed from "Comments" to "Click here to hide comments".

Text is changed with fade transition. This patch reduces the duration of
transition.
  • Loading branch information
talha131 committed Jul 30, 2019
1 parent c7e5e22 commit b86e13d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/_includes/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
$('#disqus_thread').on('shown', function () {
var link = document.getElementById('comment-accordion-toggle');
var old_innerHTML = link.innerHTML;
$(link).fadeOut(500, function() {
$(this).text('Click here to hide comments').fadeIn(500);
$(link).fadeOut(200, function() {
$(this).text('Click here to hide comments').fadeIn(200);
});
$('#disqus_thread').on('hidden', function () {
$(link).fadeOut(500, function() {
$(this).text(old_innerHTML).fadeIn(500);
$(link).fadeOut(200, function() {
$(this).text(old_innerHTML).fadeIn(200);
});
})
})
Expand Down

0 comments on commit b86e13d

Please sign in to comment.