diff --git a/amd/build/backtotop.min.js b/amd/build/backtotop.min.js
index f6b611f649dd372ed573a104d6373b3d3422f4c3..74707a0a529cb789059a344756489a56cf434e98 100644
--- a/amd/build/backtotop.min.js
+++ b/amd/build/backtotop.min.js
@@ -1 +1 @@
-define(["jquery"],function(a){return a(document).ready(function(){a("#page-footer").after('<i class="fa fa-chevron-circle-up fa-3x" id="back-to-top"></i>'),a(window).scroll(function(){a(this).scrollTop()>220?a("#back-to-top").fadeIn(500):a("#back-to-top").fadeOut(500)}),a("#back-to-top").click(function(b){return b.preventDefault(),a("html, body").animate({scrollTop:0},500),!1})}),{}});
\ No newline at end of file
+define(["jquery"],function(a){return a(document).ready(function(){a("#page-footer").after('<i class="fa fa-chevron-circle-up fa-3x" id="back-to-top"></i>'),a(window).scroll(function(){a(this).scrollTop()>220?a("#back-to-top").fadeIn(300):a("#back-to-top").fadeOut(100)}),a("#back-to-top").click(function(b){return b.preventDefault(),a("html, body").animate({scrollTop:0},500),!1})}),{}});
\ No newline at end of file
diff --git a/amd/src/backtotop.js b/amd/src/backtotop.js
index 19affe967621b33d02b888f4654b8432fc29e80d..8bc73fae75a7e02779e1d046bdb8a99764ec8647 100644
--- a/amd/src/backtotop.js
+++ b/amd/src/backtotop.js
@@ -31,9 +31,9 @@ define(['jquery'], function($) {
         // This function fades the button in when the page is scrolled down or fades it out if the user is at the top of the page.
         $(window).scroll(function() {
             if ($(this).scrollTop() > 220) {
-                $('#back-to-top').fadeIn(500);
+                $('#back-to-top').fadeIn(300);
             } else {
-                $('#back-to-top').fadeOut(500);
+                $('#back-to-top').fadeOut(100);
             }
         });