Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

This is a huge update... On the recent update to codex, the apps you use in browser stay signed in... If you watched the latest Lenny Rachitsky Dan Shipper 📧 podcast you know how significant this is. Im serious, this could entirely replace web browsers for me. Instead of...

143,150 Aufrufe • vor 1 Monat •via X (Twitter)

0 Kommentare

Keine Kommentare verfügbar

Kommentare vom Original-Post werden hier angezeigt

Ähnliche Videos

CSS Trick 🤙 You can create these tab bar controls by using :has() to count the number of tabs ⭐️ .tabs:has(input:nth-of-type(3)){--count: 3;} .tabs:has(:checked:nth-of-type(3)){--active: 200%;} .tabs::after{ translate:var(--active) 0;} Let's break it down in this ! 📼 Couple of CSS :has() tricks here combined with custom properties 😎 First things first, lay out the tabs using display: grid. This gives you a way to create equal-width tabs 🙏 .tabs { display: grid; grid-auto-flow: column; } Then you use :has() to count the number of tabs and store that in a custom property 🤓 .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 🫶 Using the tab count, you can size the tab indicator. For the tab indicator, use the tabs pseudoelement: .tabs::after { content: ""; position: absolute; height: 100%; width: calc(100% / var(--count)); } See how you can use --count to determine its size 📏 Next, use :has() to determine which tab is active or :checked with 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; } Or you could set active to the translation: .tabs:has(:checked:nth-of-type(2)) { --active: 100%; } Setting the custom property allows you to use the index elsewhere if you need it 🤙 The final piece 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.IO link below! 👇 (There's even a Tailwind CSS play for this one too 👀)

jhey ʕ•ᴥ•ʔ

70,670 Aufrufe • vor 2 Jahren

As a Twitch streamer, do you struggle with keeping your viewership up when on a BRB or Starting Soon screen? Clip reels are a perfect, fun way to keep attention. And they showcase your content. But they're a LOT of work to maintain. Well.. at least they were😎 What if you could have a simple browser source that automatically played an always-fresh clip reel? What if you could have a simple browser source that would show the clip reel of your last stream, like a "Previously On..." TV show intro? Now you can!! When you use the Highlight Hunter by FrostyTools, you find the best moments from your VOD, automatically. You can already easily turn them into Twitch clips, or download the snippets to edit for a perfect short-form video, or download entire montages of VODs to share with your community. BUT NOW, you can just grab one of two simple browser source links, to pop into your OBS or Meld Studio One of them will roll all your favorited snippets in random order, like a shuffling playlist of your best highlights. Great for BRB screens, or any time you want to entertain with your best moments. The other will play the linear montage of your latest VOD, for a "Previously On..." experience that helps catch viewers up if they missed it or forgot. Great for Starting Soon screens to seamlessly tie the streams together (and pairs great with our Showstarter chatbot feature 😉). The best part? As you continue to use the Highlight Hunter, these update automatically! New favorite snippets since last stream? They're in the reel already! Ran the Highlight Hunter on your latest VOD? Its montage will automatically play on your 'Previously On..' browser source when you start stream up next time. This is a SUPER powerful update; check it out ASAP!

Ken aka Frosty

102,769 Aufrufe • vor 8 Monaten