12 comments

  • porphyra25 minutes ago
    What&#x27;s edge masking and what am I looking at? I clicked through several of the options and I don&#x27;t see any difference. There just seems to be a really basic gradient shadow.<p>I have gpu enabled in google chrome (verified by visiting chrome:&#x2F;&#x2F;gpu) on Chrome&#x2F;149.0.7827.155 on Linux.
    • sebular18 minutes ago
      It took me forever to realize this, but I&#x27;m pretty sure the &quot;options&quot; (&quot;ghost&quot;, &quot;melt&quot;, &quot;evanesce&quot;, and so on) aren&#x27;t anything at all, just terms that are all adjacent to &quot;fade&quot; which can be selected for some reason. A search for those terms in the repo doesn&#x27;t come up with anything.<p>I was really hoping to see what the &quot;melt&quot; effect looked like :(
  • chrismorgan2 hours ago
    The fade affects scroll bars, which is quite unpleasant (and arguably catastrophic if you have two-dimensional scrolling). The traditional background-image technique avoided this by sitting inside the scroll area. I don’t think you can achieve that with mask, without an additional element. But I think it might be worth that extra element.
  • damsta6 minutes ago
    Really nice! Nice to see FF Nightly already has support that enables scroll detection.
  • petekp3 days ago
    hey all, just released a plugin to scratch an itch. i&#x27;d been lazily adding linear gradients on the edges of scrollviews and animating them with JS based on scroll position. turns out you can do a lot better with pure CSS now by leveraging masking + the new CSS scroll animations API.<p>works in pretty much all browers excepting firefox which doesn&#x27;t have CSS scroll animations yet, but the nightly version does, so it should be generally available soon.<p>demo site: <a href="https:&#x2F;&#x2F;pete.design&#x2F;tw-fade" rel="nofollow">https:&#x2F;&#x2F;pete.design&#x2F;tw-fade</a><p>github: <a href="https:&#x2F;&#x2F;github.com&#x2F;petekp&#x2F;tw-fade" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;petekp&#x2F;tw-fade</a><p>npmjs: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;tw-fade" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;tw-fade</a><p>if you use it i&#x27;d love to hear how it goes and if you have any feedback.
  • Hugsbox2 hours ago
    This is extremely laggy on my computer. It may not be a top-end gaming supercomputer but it&#x27;s no slouch either.
    • esperent1 hour ago
      It&#x27;s fine on my phone, Brave Android. Maybe it doesn&#x27;t work on Firefox?
    • sheept2 hours ago
      It might be related to the liquid glass imitation in the color scheme picker
      • bduffany1 hour ago
        I think you&#x27;re right. Performance profile shows lots of long spans relating to that element, and deleting that element makes the page scroll much more smoothly.<p>There are still other issues though. The performance of this page feels pretty bad in general.
  • Stitch42231 hour ago
    What is happening here and why is it special? The site itself does show, but does not tell (which in itself is somewhat refreshing).
    • lelandfe45 minutes ago
      This is an effect that is widely used but is generally done with JS.<p>The effect indicates to users who may not have scroll bars enabled that a box can be scrolled. The fade should be removed when a box can’t be scrolled in that direction.<p>CSS effects tend (<i>tend</i>) to be faster and conceptually is a better place for effects anyway (e: and works with JS disabled, which is cool)
  • maxjustus2 hours ago
    I also love the pure CSS parallax effect of the &quot;tw-fade&quot; title shadow using multiple spans with different styles that fade in and out based on scroll position. Very clever!
  • jstanley3 hours ago
    FYI scrolling this page is slow as balls on my computer. Firefox on Ubuntu.<p>I don&#x27;t know if this page is a demonstration of your plugin, I&#x27;m guessing yes but I can&#x27;t see any masking going on, it seems to scroll just like a normal page but much more laggy.<p>EDIT: Oh I see in your comment now, it doesn&#x27;t work in Firefox. My mistake.
    • RyanOD2 hours ago
      I was wondering the same thing and I&#x27;m in Chrome. The &quot;Horizontal&quot; and &quot;Vertical&quot; sections don&#x27;t seem to do anything, but maybe I&#x27;m just not understanding what I should be looking for?
    • rtrigoso3 hours ago
      This has a frame drop issue on Chrome Version 149.0.7827.156. It isn&#x27;t close to smooth on my browser.
  • thebiblelover71 hour ago
    How it works: <a href="https:&#x2F;&#x2F;github.com&#x2F;petekp&#x2F;tw-fade#how-it-works" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;petekp&#x2F;tw-fade#how-it-works</a>
  • ptak2 hours ago
    Neat! I&#x27;d much rather just copy-paste the CSS from the site though, would never install something like this as a package.
    • rpastuszak1 hour ago
      Might be useful: <a href="https:&#x2F;&#x2F;untested.sonnet.io&#x2F;notes&#x2F;natural-gradients-in-css&#x2F;" rel="nofollow">https:&#x2F;&#x2F;untested.sonnet.io&#x2F;notes&#x2F;natural-gradients-in-css&#x2F;</a>
  • f8ght2 hours ago
    [dead]
  • NooneAtAll32 hours ago
    arrow keys don&#x27;t work, pgdown doesn&#x27;t work
    • c-hendricks2 hours ago
      I don&#x27;t think that would be an issue of this CSS, that&#x27;s just normal `overflow: auto` behaviour.
    • k33n2 hours ago
      pgdown works for me (firefox on linux)<p>arrow keys also seem to work fine but you have to click-to-focus first.