Skip to main content

Search

Items tagged with: Css


#CSS #askFedi

What's the difference between `*::before` and `::before` and why would I use it? Stumbled across it in a blog post.


Putting AI in your product? You're gonna need #CSS gradient text animations (if you want to be cool)

So here, a recipe!
codepen.io/argyleink/pen/vEBmZ…

nerdy.dev/animated-gradient-te…

#css


2️⃣ Update CSS variables using range slider

This one is a real game-changer. With only CSS, you can use a range slider to update a CSS variable!

css-tip.com/css-variables-rang…

Imagine all the JavaScript you will no longer need.

#CSS #HTML

#html #css


3️⃣ The Complex But Awesome CSS border-image Property

This is probably one of my best articles. I explore a very old and underrated property. You can achieve a lot of magic with border-image!

smashingmagazine.com/2024/01/c…

#CSS #HTML

#html #css


4️⃣ Glowing Border Animation

Look how the border smoothly returns to its initial position (choosing the shortest path) when the mouse leaves the element!

css-tip.com/glowing-border/

A single-element implementation powered by modern CSS.

#CSS #HTML

#html #css


5️⃣ CSS-only games with keyboard control

Yes, games you can play with your keyboard coded with only #CSS.

Mario game or a maze game? Find them within my collection 👉 css-games.com/

I even have an article about them

frontendmasters.com/blog/how-k…

#css


6️⃣ Overflow/Scrollbar detection

Another experimentation using Scroll-Driven animations.

css-tip.com/overflow-detection…

A few lines of code to detect if your element is overflowing or has a scrollbar. An information you can use to apply specific CSS anywhere on the page!

#CSS #HTML

#html #css


7️⃣ Getting the Size of an Element

A cool (and hacky) experimentation using scroll-driven animation to get the dimension of any element using pure #CSS!

css-tip.com/element-dimension/

I also wrote a detailed article explaining the magic 🪄

frontendmasters.com/blog/how-t…

#css


8️⃣ Quantity Query Selector

A simple tool to generate your quantity query selector in no time using modern CSS.

css-tip.com/quantity-queries/

A small Easter egg 🥚 is hidden there. Can you find it?

#CSS #HTML

#html #css


9️⃣ A 3D Parallax Hover Effect

I like making cool effects with minimal #CSS code and a single #HTML element.

My favorite this year is this satisfying 3D effect coded with less than 15 declarations.

css-tip.com/3d-parallax-effect…

#html #css


🔟 A huge collection of Tooltip/Speech bubble shapes!

100 different shapes made with a single element and modern CSS.

css-generators.com/tooltip-spe…

I also wrote 2 detailed articles (via @smashingmag ) explaining the techniques used to create most of them.

smashingmagazine.com/2024/03/m…

#CSS


It's the end of the year so let's jump back in time and see some of my favorite CSS stuff!

This week I will post (2 posts/day) my personal top 10 of what I shared in 2024 🏆

🧵Don't miss this thread! You can also participate by telling me your favorite CSS thing 👇

#CSS

#css


Wildest #CSS media query I've written in a while

`@container (inline-size >= calc(100cqi - 120px))`

yep, `calc()` in a MQ!

WHY?
to re-anchor buttons to be "inside" when space is tight

Video:
purple outline's are containers, buttons adapt to containers or the page

nerdy.dev/carousel-adaptive-an…

#css


For better access, I made the source of my public HTML and CSS books easier to browse. The following titles now and finally have an outline in the repo README:

* Upgrade Your HTML: github.com/frontenddogma/upgra…
* CSS Optimization Basics: github.com/frontenddogma/css-o…
* Rote Learning HTML & CSS: github.com/frontenddogma/rote-…
* The Little Book of Little Books: github.com/j9t/little-books
* Das kleine Buch der HTML-/CSS-Frameworks: github.com/frontenddogma/html-… 🇩🇪

(Titles are new and old, so relevance can vary.)

#html #css

#html #css


Just did a quick word count on the Kitten reference and tutorials on the technical manual branch I’m working on and it’s about 22,181, which, were it fiction, would apparently put it in the novella category.

Given there are chunky pieces of code I still have to cover for the upcoming technical manual, it might even hit the novel category at some point.

kitten.small-web.org

:kitten:💕

#Kitten #SmallWeb #documentation #technicalManual #web #dev #HTML #CSS #JavaScript #NodeJS


Loving page transitions in #CSS. Little effort and don't need to go overboard (yeah sure designers and developers never go overboard on new visual trends... lol).

"Smooth Multi-Page Experiences with Just a Few Lines of CSS"

htmhell.dev/adventcalendar/202…

#css


Most of my readers are viewing the site on mobile so I really tried to make the homepage look good in a mobile browser. As I learn more about responsive design I'd like to expand the page a bit for desktop browsers, and still retain the nice mobile layout. #css
#css


#CSSence #AdventCalendar Day 9

Yes, `hyphens` got Baseline support last year. And yes, #CSS is supercalifragilisticexpialidocious. But hyphenation is still hard to grasp.

cssence.com/2024/hyphenation/


Mastodon Bird UI 2.0.6 stable is now released! This version supports Mastodon v4.3.2 and v4.4.0-alpha. :neon_skull:

Live demo (single column layout only): mementomori.social
Source code and installation instructions: github.com/ronilaukkarinen/mas…

#MastodonBirdUI #BirdUI #CSS #UI #WebDev #OpenSource #Mastodon #MastoAdmin


By the way, this is my second article for Frontend Masters.

My first was a few months ago and it was about creating dynamic split effects (image, text, page) without any content duplication whatsoever frontendmasters.com/blog/split…

#CSS #SVG #filter #blending #code #web #webDev #frontend #coding #dev #webDevelopment #blendMode #svgFilter #cssGradient


I have a new article out: 🎇 Pure CSS Halftone Effect in Only 3 Declarations 🎇 frontendmasters.com/blog/pure-…

This goes through the how behind the 3 declarations and then explores a lot of variations that help us produce 🌟 cooler, more interesting 🌟 patterns.

#CSS #pattern #gradient #halftone #cssPattern #cssGradient #filter #blending #blendMode #code #coding #frontend #web #dev #webDev #webDevelopment


Tooltip Best Practices

css-tricks.com/tooltip-best-pr…

#UX #UI #Frontend #CSS #Webdev


CSS Wrapped 2024 is here!

Just like last year, we – the Chrome DevRel team – have published CSS Wrapped, our end of year overview covering many of the new #CSS and Web UI features that landed in Chrome and The Web Platform in 2024.

👉 chrome.dev/css-wrapped-2024/ is the place to be!

#css


🔗 10 powerful ways to use CSS variables via @argyleink #Development #Webdev #Css

CSS custom properties are AMAZING. I'm going to attempt to name and roundup all the categories and strategies of custom props that I've come across.

nerdy.dev/custom-prop-categori…


Next-level frosted glass w/ backdrop-filter via @joshwcomeau

joshwcomeau.com/css/backdrop-f…

I like how Josh looks a more of the smaller details that really bring up the last 10% of the effect. Worth bookmarking even if you know the basics. #CSS #webdev


I recently upgraded my laptop (bye bye, TouchBar, hello debt!) and bought a hard shell to go bananas with stickers. Finally using the lovely ones by @eleventy (rare! shiny!) and @accudio (ko-fi.com/s/f97a45f0a2), a bootleg BTTF sticker, as well as my own holographic #CSS (chriskirknielsen.com/designs/c…) and Jak & Daxter ones.

PS: I am very bad at strategic sticker placement, I know.


LaTeX.css – Make your website look like a LaTeX document.

Write semantic HTML, add <link rel="stylesheet" href="latex.vercel.app/style.css"> to the <head> of your project and you are good to go.

latex.vercel.app

#CSS #Latex