From b86e13d71bcc88201459d4440cdff9f11a1efcef Mon Sep 17 00:00:00 2001 From: Talha Mansoor Date: Sat, 27 Jul 2019 02:02:37 +0500 Subject: [PATCH] feat(comments): reduce transition duration from 500 to 200 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. --- templates/_includes/comments.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/_includes/comments.html b/templates/_includes/comments.html index cec5f451..6b46bc91 100644 --- a/templates/_includes/comments.html +++ b/templates/_includes/comments.html @@ -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); }); }) })