Duc Bang

30 posts

Duc Bang

Duc Bang

@26ducbang

I write creative code

Ho Chi Minh Katılım Temmuz 2022
113 Takip Edilen7 Takipçiler
Duc Bang retweetledi
Daniel Beauchamp
Daniel Beauchamp@pushmatrix·
Today @Shopify is open sourcing the tool we use for optimizing glTF 3D models. 🔧 Tweak compression settings per texture ⚡ See changes immediately 🧰 Mesh compression options 🌐 Hosted online & free 👇 Check the thread for details
English
44
285
3K
254.6K
Duc Bang retweetledi
balint
balint@BalintFerenczy·
the codepen is live for the sticker effect ✨ check the post below for the link 👇 i’d advise using it with an image that already has an outline, as applying it with svg filters really challenges Safari regarding performance should i post a detailed breakdown?
English
15
16
290
22.7K
Duc Bang retweetledi
jhey ʕ•ᴥ•ʔ
jhey ʕ•ᴥ•ʔ@jh3yy·
number range slider using 3D CSS transforms sometimes a shift in perspective unlocks a new solution check the reveal👇
English
25
30
804
47.7K
Duc Bang
Duc Bang@26ducbang·
@nhtoby311 appreciate ur work ! pls teach me how to make this cursor effect 😄
English
1
0
1
36
Toby
Toby@nhtoby311·
Here’s my take on Apple’s “liquid glass” trend. Mine is more "liquidy" with a fluid mouse effect. Probably optimize it later as fluid sims and refraction aren’t cheap to render. Scene inspired by #r3f examples. 🌊 Try it out: liquid-glass-nine.vercel.app #threejsJourney #threejs
English
1
0
8
617
Duc Bang retweetledi
Matias 🧉
Matias 🧉@matiNotFound·
🚀 We are releasing all the explorations from Vercel Ship 25, open source. Working with @vercel is always a good opportunity to experiment with cool tech; This year, we pushed the limit again. Made with @threejs & OGL Link, source, and articles below @basementstudio
English
22
41
447
25.1K
Duc Bang retweetledi
Renaud
Renaud@onirenaud·
Integrated unified spray, foam, and bubbles into my fluid simulation. Runs in real-time with WebGPU, Three.js, and over 1 million particles!
English
20
80
817
44.1K
Duc Bang retweetledi
jhey ʕ•ᴥ•ʔ
jhey ʕ•ᴥ•ʔ@jh3yy·
CSS Tip! 💪 You can create these tab controls with CSS :has() + radio buttons ✨ .tabs:has(input:nth-of-type(3)) { --count: 3; } .tabs:has(:checked:nth-of-type(3)) { --active: 2; } .tabs::after { translate: calc(var(--active, 0) * 100%) 0; width: calc(100% / var(--count)); } Two CSS :has() tricks here combined with a rendering trick 🤙 The tab control is a container using display: grid. You can use :has() to count the number of tabs in the container: .tabs:has(input:nth-of-type(3)) { --count: 3; } .tabs:has(input:nth-of-type(4)) { --count: 4; } Using the cascade, the last valid :has() gives you the number of tabs 🫶 Once you know the number of tabs, you know how to size the indicator: .tabs::after { content: ""; position: absolute; height: 100%; width: calc(100% / var(--count)); } It's a pseudoelement that uses --count to determine its size 📏 The next :has() trick is determining which tab is active or :checked as it's an input [type=radio] .tabs:has(:checked:nth-of-type(2)) { --active: 1; } .tabs:has(:checked:nth-of-type(3)) { --active: 2; } You can use a zero-indexed translation here. If the second input is :checked, set --active: 1, then translate the pseudoelement on the tabs to that position 👉 .tabs::after { translate: calc(var(--active, 0) * 100%) 0; } The last rendering trick is using mix-blend-mode 👀 The tabs have a black background-color, the pseudoelement is white, and the label text is white. When you use mix-blend-mode: difference on the pseudoelement it will give this effect that the text transitions from white to black sliding across 😎 .tabs::after { color: hsl(0 0% 100%); mix-blend-mode: difference; } You can totally mix up the colors here though and go with a different effect. The mechanics of how you can use CSS :has() is the main point here 🙏 As always, any questions, suggestions, etc. let me know @CodePen link below! 👇 (There's even a @tailwindcss play for this one too 👀)
English
38
202
2K
437.5K
Duc Bang retweetledi
Eduard Bodak
Eduard Bodak@eduardbodak·
Added another three new buttons to my tiny library among 34 other unique buttons. Made in @webflow with custom CSS. It's a free cloneable. Check it out live! Link is in the comments.
English
6
8
246
12.1K
Duc Bang retweetledi
Hans Chiu
Hans Chiu@chiu_hans·
Let's interact with the light waves! Here, I created a real-time simulation that can run in your browser: chiuhans111.github.io/interactwave/ You can change the beam width and the focusing power of the input light rays. Please give it a try and let me know your thoughts! #Optics #WebGL
English
57
353
3K
152.7K
Duc Bang retweetledi
Codrops
Codrops@codrops·
We're kicking off the week with a tutorial on creating a dissolve effect in Three.js 👾 @0xJatinChopra breaks down the technique step by step, showing how to use shaders, particles, and bloom to achieve a dynamic effect often used in games for fading and transitions 👇
English
2
10
110
6.2K
Duc Bang retweetledi
Immersive Garden
Immersive Garden@Immersive_g·
Exciting news! The new Hatom website has been awarded 'Site of the Day' by @fwa 🌟 Big congrats to the team! hatom.com
English
3
33
133
4.3K