Blur Gradient - Backdrop-filter #3223
bonnmh
started this conversation in
Show and tell
Replies: 2 comments 3 replies
-
|
you don't need a custom shader for it right? you can just overlay the
gradient and use the backdrop filter no?
This example seems to be relevant:
https://shopify.github.io/react-native-skia/docs/backdrops-filters/#example-1
…On Thu, Jul 3, 2025 at 6:40 AM bonnmh ***@***.***> wrote:
Hi @william-candillon <https://github.com/william-candillon> , I’m trying
to recreate a UI that includes a semi-transparent overlay with a linear
gradient background and a backdrop-filter blur effect — similar to how it’s
done on the web with CSS. Here’s an example of the effect I’m aiming for in
CSS:
background: linear-gradient( 180deg, rgba(250, 250, 250, 0.90) 0%,
rgba(250, 250, 250, 0.80) 80%, rgba(250, 250, 250, 0.00) 100% );
backdrop-filter: blur(20px); /* Example value */
I’ve tried using react-native-skia to recreate this with a blur shader or
effect, but I haven’t been successful so far. I’ve also watched some GLSL
gradient/blur tutorial videos (including some from this repo’s
authors/community), but I still couldn’t achieve the desired effect.
Have anyone successfully implemented something like this using Skia,
possibly with a custom shader or another approach? I’d really appreciate
any pointers, examples, or guidance.
Thanks in advance!
image.png (view on web)
<https://github.com/user-attachments/assets/a6e452c5-66dd-41b5-941d-af02ac2adae2>
—
Reply to this email directly, view it on GitHub
<#3223>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVQ53PUVIEJK3SFDIFL3GSX3JAVCNFSM6AAAAACAVVFOEOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGUZDIOBYGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Unfortunately if you want to apply it to native views I wouldn't recommend
to use Skia for this, especially for Android.
…On Tue, Nov 18, 2025 at 1:17 PM Hossein Mohammadi ***@***.***> wrote:
Hi William i am searching for an hours about this. Want to have replace
react-native-blur with skia blur, because of performance.
the question is: is it possible to create a blur component and render it
over react-native components?
If it's yes, in the future i want to add liquid glass too. is it possible
to create liquid glass tab-bar
—
Reply to this email directly, view it on GitHub
<#3223 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVTWVQHMVED3TFOC2XL35ME7PAVCNFSM6AAAAACAVVFOEOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBQGA3DGNQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @william-candillon , I’m trying to recreate a UI that includes a semi-transparent overlay with a linear gradient background and a backdrop-filter blur effect — similar to how it’s done on the web with CSS. Here’s an example of the effect I’m aiming for in CSS:
background: linear-gradient( 180deg, rgba(250, 250, 250, 0.90) 0%, rgba(250, 250, 250, 0.80) 80%, rgba(250, 250, 250, 0.00) 100% ); backdrop-filter: blur(20px); /* Example value */I’ve tried using react-native-skia to recreate this with a blur shader or effect, but I haven’t been successful so far. I’ve also watched some GLSL gradient/blur tutorial videos (including some from this repo’s authors/community), but I still couldn’t achieve the desired effect.
Have anyone successfully implemented something like this using Skia, possibly with a custom shader or another approach? I’d really appreciate any pointers, examples, or guidance.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions