Need help?
<- Back

Comments (30)

  • porphyra
    What's edge masking and what am I looking at? I clicked through several of the options and I don't see any difference. There just seems to be a really basic gradient shadow.I have gpu enabled in google chrome (verified by visiting chrome://gpu) on Chrome/149.0.7827.155 on Linux.
  • chrismorgan
    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.
  • petekp
    hey all, just released a plugin to scratch an itch. i'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.works in pretty much all browers excepting firefox which doesn't have CSS scroll animations yet, but the nightly version does, so it should be generally available soon.demo site: https://pete.design/tw-fadegithub: https://github.com/petekp/tw-fadenpmjs: https://www.npmjs.com/package/tw-fadeif you use it i'd love to hear how it goes and if you have any feedback.
  • Hugsbox
    This is extremely laggy on my computer. It may not be a top-end gaming supercomputer but it's no slouch either.
  • franky47
    Might want to set `overscroll-behavior: contain;` on those scroll areas, having the whole page move up and down (or worse, navigating Back when scrolling left) isn't great UX.https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P...
  • maxjustus
    I also love the pure CSS parallax effect of the "tw-fade" title shadow using multiple spans with different styles that fade in and out based on scroll position. Very clever!
  • ptak
    Neat! I'd much rather just copy-paste the CSS from the site though, would never install something like this as a package.
  • jstanley
    FYI scrolling this page is slow as balls on my computer. Firefox on Ubuntu.I don't know if this page is a demonstration of your plugin, I'm guessing yes but I can't see any masking going on, it seems to scroll just like a normal page but much more laggy.EDIT: Oh I see in your comment now, it doesn't work in Firefox. My mistake.
  • Stitch4223
    What is happening here and why is it special? The site itself does show, but does not tell (which in itself is somewhat refreshing).
  • jonahx
    There is something very wrong on chrome mac, for me at least.I mouse over the horizontal section and everything starts blinking and jittering wildly, then disappears. Vertical section has same issue.
  • thebiblelover7
  • Etheryte
    Unfortunately it seems completely bugged out on mobile Safari.
  • damsta
    Really nice! Nice to see FF Nightly already has support that enables scroll detection.
  • anon
    undefined
  • f8ght
    [dead]
  • NooneAtAll3
    arrow keys don't work, pgdown doesn't work