Good day!
Please tell me how to implement on the website the mechanism for the appearance of an element when scrolling the screen - the element moves along the horizontal axis (from right to left, or vice versa), depending on the screen scrolling up or down, using the visibility style. This mechanism is implemented on the website: mhmgroup.ae There is a similar code, but the element in it will just appear and disappear, but I can’t find a solution for the purpose I need:
jQuery(function(f) { var element = f('#back-top'); f(window).scroll(function() { element['fade' + (f(this).scrollTop() > 200 ? 'In' : 'Out')](500); }); }); Thank !