Because the GSAP’s Scroll Smoother has a few limitations (such as handling fixed elements inside the scroll container or anchor scrolling), I decided to optionally add another provider. The new smooth scrolling provider Lenis (https://lenis.studiofreight.com/)[2kb, zipped] is already active on our Bricksforge page. And wow! The scrolling feels really great!
I will release the update later today. After that you can use the alternative scrolling provider optionally! And the best: All position:fixed and sticky problems are fixed automatically
Nice! I just looked at the lenis site and it works well
Their default easing isn’t quite my taste, however it seems they allow you to pass an easing value.
Could you add easing options, at some point in the future, too?
Every single time you post a new update I’m amazed this isn’t 1.0 already BricksForge has to be the most innovative, exciting addition to the Bricks ecosystem since Bricks itself. Well coded, well considered, and fun. Cheers
I love it! Silky smooth, doesn’t break anything, and configurable to where I like it. Thank you!
I’m just running into 1 problem:
I like quite high values for desktop, but not for mobile. I’d be more than happy to switch mobile off entirely, but I love the scroll normalisation (address bar not hiding) that comes when it’s switched on.
Is it possible to set values separately for touch? It seems I can’t have normalisation without the mobile experience getting the same (admittedly high) values that I’m keen on for desktop.
If not, is it possible to set normalisation for touch and leave everything else default?
No problem. There is one field I’ve missed to implement. Now you can also define a value for “Touch Multiplier”. There is no option to set a separate value for “Duration”. Hopefully the Touch Multiplier will work for you
You’re going to have to stop being so epic, Daniele, or we’re going to start expecting this kind of speed from the rest of the space!
Working much better! Thank you!
I can use the new option, but I think there are some bugs (See attached)
The touch multiplier input field on the options panel also said "t̶r̶u̶e̶ " and couldn’t be adjusted with the + - buttons until I’d manually input and refreshed. Unfortunately I can’t get that back for a screenshot as I set the value, and now the placeholder reads “2”
Also the config icon has lost some styling, as in the screenshot.
I have cache killer enabled so have become quite lazy about closing the browser completely. Silly me.
A browser restart has fixed this. Thanks!
Multiplier works very well for my needs
I’ve been working on revamping my agency website, and BricksForge has played a large part in that. I look forward to showcasing when the time comes (under a different username )
Talking of which, it would be pretty cool to add a showcase section to the Bricksforge forum
I am having this issue where the smooth scroll using Lenis makes scroll-to unusable. What happens is that it scrolls to the anchor as it should but then, after a second, starts scrolling again until it is about halfway through the section. I found that if I disable Bricksforge Smooth Scrolling with Lenis, the issue is fixed.
I saw the section where it reads, " Use data-lenis-prevent attribute on nested scroll elements. In addition, we advice you to add overscroll-behavior: contain on this element." which I tried but that doesn’t seem to help either.
Would love to use Lenis and really appreciate any help I can get!