Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

COBE v2: reliably use any DOM elements as markers & arcs. CSS transition, animation, filter, interactivity, ...all just work. High perf, zero deps, still ~5KB. Coming soon.

225,631 Aufrufe • vor 8 Monaten •via X (Twitter)

37 Kommentare

Profilbild von Shu
Shuvor 8 Monaten

It creatively uses CSS-native APIs, position-anchor and CSS variable. Here's how you style a label without any JS: Your marker automatically follows the anchored position on the 3D space. Use the `--cobe-visible-` prefixed variable to toggle between visible/invisible styles.

Profilbild von Shu
Shuvor 8 Monaten

2 years ago I was working on the separated marker/arc layers. But I stopped there because there’s no great APIs to anchor DOM nodes reliably and declaratively. I really don’t want JS to be involved here like exposing {x,y,z}[] and have positioning a userland thing. It’s definitely going to have perf and frame-syncing issues in different frameworks. And users need to handle all the DOM layering and position: relative/fixed things. So I waited until the declarative CSS anchor positioning API gets wider adopted. It feels great!

Profilbild von Shu
Shuvor 8 Monaten

And the conditional CSS trick. You can define the fallback value: .marker { opacity: 1; opacity: var(--cobe-visible-marker, 0); transition: opacity .3s ease; } And COBE will unset the variable when the marker is invisible (behind the globe) so final opacity fallbacks to 0. If visible, the variable is set to “invalid” and the CSS is equivalent to: .marker { opacity: 1; opacity: invalid; transition: opacity .3s ease; } So it shows as 1. Transitions all work. You can use this variable to toggle any CSS properties too including blur in the demo video.

Profilbild von Gonzalo Cordova
Gonzalo Cordovavor 8 Monaten

clean! I posted my first design yesterday and just got humbled

Profilbild von Manu Arora
Manu Aroravor 8 Monaten

youre the best

Profilbild von Kevin Okinedo
Kevin Okinedovor 8 Monaten

This is gorgeous, currently using v1 on and will be upgrading once available. Awesome work!

Profilbild von stonechat
stonechatvor 8 Monaten

is there a marker limit?

Profilbild von Igor bedesqui
Igor bedesquivor 8 Monaten

@1weiho whaaaaaat, so cool

Profilbild von Andrew Gadzik ▲
Andrew Gadzik ▲vor 8 Monaten

@samko_cx We should chat 😂

Profilbild von Rajat
Rajatvor 8 Monaten

im pretty sure AI can't recreate this kind of DX

Profilbild von Pablo Stanley
Pablo Stanleyvor 8 Monaten

DARK MAGIC

Profilbild von Asad Synt
Asad Syntvor 8 Monaten

need it

Profilbild von rege
regevor 8 Monaten

This is soooo good! 🤏😎 🤏🕶️ 😲

Profilbild von Christo Ribeiro
Christo Ribeirovor 8 Monaten

This is beautiful 🤩

Profilbild von dom
domvor 7 Monaten

I ended up using this for a side project tool - very cool stuff. Thanks for sharing!

Profilbild von Jp 🦝
Jp 🦝vor 8 Monaten

Literally started using it yesterday for a project—if you have an alpha or beta, I’m happy to give it a try 🙏

Profilbild von Evil Rabbit
Evil Rabbitvor 8 Monaten

🤍

Profilbild von Michael Houghton 🐺
Michael Houghton 🐺vor 8 Monaten

Man I need this on our maps these marker styles are dope and ffffaaast

Profilbild von Matt
Mattvor 8 Monaten

this is so f beautiful bro ❤️🥰

Profilbild von Atif Saleem
Atif Saleemvor 8 Monaten

It looks great and I got few ideas to adopt from it. I saw something similar at @Replit Agent 4 launch where @amasad prompted the agent to build.

Profilbild von Aleksej Petricig
Aleksej Petricigvor 8 Monaten

That's the coolest animation and UI that I've ever seen! 🤩 Love it!

Profilbild von klöss
klössvor 8 Monaten

ohhhh I love this

Profilbild von Dan ⚡️
Dan ⚡️vor 8 Monaten

so pretty i can't stop watching this

Profilbild von Saïd Aitmbarek
Saïd Aitmbarekvor 8 Monaten

looks insanely cool :)

Profilbild von Tino Fileccia
Tino Filecciavor 8 Monaten

What makes this better than the Three.JS CSS3DRenderer?

Profilbild von Arghya Das
Arghya Dasvor 8 Monaten

thank you, i need it

Profilbild von Fred Moon 🚀
Fred Moon 🚀vor 8 Monaten

im in the deep for exactly this. can't wait for the release!

Profilbild von Nucleus☕️
Nucleus☕️vor 8 Monaten

very niceee

Profilbild von Armin
Arminvor 8 Monaten

Sweet, I’m gonna use this. It’d be good to be able to tag lat and long as well, switch between spherical and flat views, and somehow integrate AI elements into it.

Profilbild von Wrennly
Wrennlyvor 7 Monaten

dom elements as compute targets is wild. did you find the dom update overhead dominates over the gpu work for 1m particles, or did you de...

Profilbild von DeafBuild
DeafBuildvor 8 Monaten

😍

Profilbild von Siddharth Borderwala
Siddharth Borderwalavor 8 Monaten

The demo video is so cool! You cooked with COBE 🔥

Profilbild von Harshal
Harshalvor 8 Monaten

looks awesome!

Profilbild von Tonino Catapano (tonnoz)
Tonino Catapano (tonnoz)vor 8 Monaten

great work thank you!

Profilbild von Antonio Bonet
Antonio Bonetvor 8 Monaten

Will it be possible to have this feature de​coupled in case we want to use it like on 2D maps or so?

Profilbild von Doug Lance
Doug Lancevor 8 Monaten

do you need beta testers? 👀

Profilbild von seekvision
seekvisionvor 8 Monaten

nice

Ähnliche Videos