Loading video...

Video Failed to Load

Go Home

Got HTML rendering in canvas working AS IS on all browsers, including iOS Safari - html-in-canvas polyfill - interactions - hover, focus, active, typing etc - css animations - scrolling - caret and text selection - #threejs, #webgl, #webgpu support - dark/light mode Link below

32,006 views • 7 months ago •via X (Twitter)

18 Comments

Palash Bansal's profile picture
Palash Bansal7 months ago

Polyfill and three.js(>r160) integration - Demo -

Nathaniel's profile picture
Nathaniel7 months ago

webxr?

Palash Bansal's profile picture
Palash Bansal7 months ago

It renders to a canvas so rendering would work that can be used in webxr. For interaction some ui, some raycast might have to be done.

David Lin-Clark's profile picture
David Lin-Clark7 months ago

freakin sweet!

Corey Hackworth's profile picture
Corey Hackworth7 months ago

this is so cool. the ability to easily do real work with text (and I would imagine, CSS) inside the canvas this way has incredible potential.

Hunter Gemmer's profile picture
Hunter Gemmer7 months ago

Whhhhhhaaat?! Bro, you win. Not sure what (obviously all the cred), but you win. If this is as advertised, that is so incredibly impressive and a fucking gigantic win for the dev community at large. You're a man of the people 🫡

Adam Bradley ⚡️'s profile picture
Adam Bradley ⚡️6 months ago

This is pretty mind blowing! Crazy clever

Robin's profile picture
Robin7 months ago

I’ll be trying this out tomorrow!

cephxs's profile picture
cephxs7 months ago

i just want to see the website bro

Palash Bansal's profile picture
Palash Bansal6 months ago

Which one bro?

Yuri's profile picture
Yuri6 months ago

What about performance?

Palash Bansal's profile picture
Palash Bansal6 months ago

Depends on the complexity, you can try out the link on your device, it's not bad.

Yuri's profile picture
Yuri6 months ago

I would say not bad, ofc not native as this is html -> svg -> texture, but impressive man!

Tuan Anh Bui's profile picture
Tuan Anh Bui6 months ago

Isn‘t HTML in Canvas the perfect technology to phish people? 😬

Palash Bansal's profile picture
Palash Bansal6 months ago

How would that work?

Tuan Anh Bui's profile picture
Tuan Anh Bui6 months ago

Hm, good question. Thinking more thoroughly, maybe it actually doesn't introduce new attack vectors that already exist.

Hussein Alalivi's profile picture
Hussein Alalivi7 months ago

Impressive work

S-Space Studio's profile picture
S-Space Studio7 months ago

How do I interact in R3F?

Related Videos