Fade out on scroll only on desktop

22
January 03, 2019, at 10:00 AM

my objective is to give the fade out effect to 3 elements through css just when the page is viewed on dekstop. So i tryed this code that works even on mobile, i don't know why the width function is not working. Can you help me ?

 $(window).scroll(function() {
if ($(this).scrollTop()>0 && $(this).width() > 780)
 {
    $('.header-right-info').fadeOut();
    $('.menu-master').fadeOut();
    $('.header-left-info').fadeOut();
 }
else
 {
  $('.header-right-info').fadeIn();
  $('.menu-master').fadeIn();
  $('.header-left-info').fadeIn();
 }
 });
READ ALSO
Keep the “TabButton” highlighted all the time - (custom style)

Keep the “TabButton” highlighted all the time - (custom style)

I want to keep the TabButton stay highlighted after clicked on it, so I know which tab I currently active

32
Node.js ignoring .then(variable => {

Node.js ignoring .then(variable => {

One function calls an async function which then calls another async functionHowever the master function (the first, non-async one) is not waiting on the

16
MeetingTimeSuggestionResult (Doesnt Return all Expected Results)

MeetingTimeSuggestionResult (Doesnt Return all Expected Results)

I am using the following documentation for guidance https://githubcom/microsoftgraph/msgraph-sdk-javascript

24
How to pragmatically log in to a website using WKWebView?

How to pragmatically log in to a website using WKWebView?

I'm trying to log into a website using an appThe project has two view controllers, one with a Login UI I made and the other with a WKWebView

40