Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

CSS only animated exclusive accordion update 🚀 details { interpolate-size: allow-keywords; } ::details-content { transition: content-visibility, height; transition-behavior: allow-discrete; } [open]::details-content { height: auto; }

51,127 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Nine
Ninevor 1 Jahr

Can you make a css based ui library called jhey/ui

Profilbild von Alexis Morin
Alexis Morinvor 1 Jahr

What version of Chrome will have support for the ::details-content pseudo-element?

Profilbild von mh
mhvor 1 Jahr

Probably going to be a while until this is useful, right?

Profilbild von Eugene Korchagin
Eugene Korchaginvor 1 Jahr

God Are you magician?

Profilbild von Gustav Ekerot
Gustav Ekerotvor 1 Jahr

where's the npm package jhey!? seriously though, would be cool with a css-only based component lib, copy paste á la shadcn

Profilbild von Sudhansu Bhushan Mishra
Sudhansu Bhushan Mishravor 1 Jahr

Thank you for sharing this codepen

Profilbild von 👑 Satoshi 16px
👑 Satoshi 16pxvor 1 Jahr

You inspire me man!! Its crazy what you do with Css

Profilbild von Manu | UX UI Designer
Manu | UX UI Designervor 1 Jahr

Nice!!!!

Profilbild von Facundo Muoio
Facundo Muoiovor 1 Jahr

Wow! Men, it is so pretty accordion. I would like to know where you learn these CSS skills.

Profilbild von Carlito
Carlitovor 1 Jahr

Sorcery!

Ähnliche Videos

How I turn my templates into real landing pages. Works for any vibe coding platform or site. This is my full guide. I start with Gemini 3. I copy the HTML code and paste to Cursor/v0/lovable and prompt "Create a new landing page /page-name using this design but adapted to {site_name}. Replace the header and footer with the ones from my site. Adapt the whole page, keep everything: {HTML_code}" Details that can to be adapted or improved: Fonts: "Use {font_name} Google font for headings and {font_name} for body text." Icons: "Use Iconify {icon_set} icons" Colors: "Change primary color to blue. Everything else should be monotone." Bonus: "Make the outlines subtle" for a cleaner design. Animation intro/on scroll: "Animate when in view observed, fade in, slide in, blur in, element by element. Use 'both' instead of 'forwards'. Don't use opacity 0." Static to animated: "Animate details with {animate_type} and decorations.". Example types: line, beam animation, noodles, grid, sonar, etc. Background animation: "Apply the background animation using Unicorn Studio {animation_code}" Details to make your layout stand out: "Add vertical container-size lines. Add 01 02 03 number details." Stand out from generic-looking: "Make this more upscale with large tall fonts, Newsreader font and black and white agency". Adapt content: "Adapt the content to {copy and paste site texts}". Buttons: "Change main button to {code}. Add a 1px border beam animation around the pill-shaped button on hover." Adding sections like testimonials: "Adapt a new section after {section} using this code: {component code}". You can copy the code from Codepen, 21st dev or Aura. Responsiveness: "Make this responsive. Add a hamburger menu for mobile. Hide this {element} for mobile." Making forms work: "Make the form send an email to {your_email}". Payments: "Link the buy button to {LemonSqueezy payment link}". I use composer-1 for quick fixes. I finish with Claude Opus 4.5 for code reviews "Please review the code for performance and robustness". The template HTML code should give you a blueprint for all these, but I think it's important to keep iterating for your specific site.

Meng To

41,015 Aufrufe • vor 7 Monaten

As part of my assignment, I was tasked with designing a high-density data grid for an SEO platform. During development, our analysis of Google Analytics data revealed that the majority of our users access the platform on 13-inch display laptops. This insight necessitated optimizing the data grid for this screen size. A key challenge we encountered was the sidebar housing keyword filters, which occupied a significant portion of the available space. Since this feature was integral to the page, removing it was not an option. Even making it collapsible would have had minimal impact on the overall layout. Our initial approach involved implementing an inner horizontal scroll to accommodate additional columns. However, this solution introduced technical limitations due to the grid’s accordion UI pattern, which enables users to expand rows for detailed views. This functionality effectively split the table in half, making it difficult to synchronize scrolling across two separate grid sections within modern browsers. To address these constraints, I devised an alternative solution: implementing auto-expandable and collapsible columns based on content visibility. For instance, the "Flag" and "Performance" columns dynamically collapse by default and expand when hovered over, allowing users to access the necessary details when needed. This approach enabled us to fit all columns within a 13-inch display without relying on horizontal scrolling, ensuring a more efficient and user-friendly experience.

virgil pana

44,560 Aufrufe • vor 1 Jahr