W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [mediaqueries4] Media queries for viewport positions

From: Jake Archibald <jaffathecake@gmail.com>
Date: Fri, 7 Jun 2013 10:40:58 +0100
Message-ID: <CAJ5xic9EaA68PJB3RcmHwZc=tJQnyJqiFOOBgBtJij_KZScc_A@mail.gmail.com>
To: www-style@w3.org
I see this being used in conjunction with position:sticky.

It's common for a header to change state once it becomes sticky, or at some
other point in the page. Google+ is doing this, for instance.

Something like:

@media (scroll-top-min: 300px) {
  /* change stuff, perhaps with transition */
}

would reduce the need for a scroll event (which doesn't work well on
mobile).
Received on Friday, 7 June 2013 09:41:26 UTC

This archive was generated by hypermail 2.3.1 : Friday, 7 June 2013 09:41:26 UTC