Konstantin Dankov's Avatar

Konstantin Dankov

@dankov.me

Web Developer since 2002. Focus on UI/UX and front-end development. Teaching HTML, CSS and JavaScript. Audiobooks, Photography and all things tech. Based in Sofia, Bulgaria

60
Followers
234
Following
46
Posts
26.11.2024
Joined
Posts Following

Latest posts by Konstantin Dankov @dankov.me

Post image

htmxRazor 1.2.0 is out. Toast notifications, pagination, ARIA live regions, CSS cascade layers, View Transitions API support, and hx-on:* attributes for htmx 2.x.

All server-rendered. All Tag Helpers. All ASP.NET Core.

htmxRazor.com
github.com/cwoodruff/htmxRazor

07.03.2026 12:06 πŸ‘ 10 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Building a #hash thumbnail navigation using the experimental
:target-before, :target-current & :target-after

With anchor-positioning and animation-timeline thrown in for good measure.

Pure CSS. No JavaScript.

Full demo on @codepen.io
codepen.io/cbolson/pen/...

04.03.2026 18:55 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Preview
The Layout Maestro An interactive course focused on how to think, build, and test a layout with real-world examples.

βŒ› Sending an email update about The Layout Maestro course in a few hours including release date, pricing, and more.

If you want to be the first to know (and get a discounted price), subscribe to the newsletter: layoutmaestro.ishadeed.com

04.03.2026 09:47 πŸ‘ 26 πŸ” 7 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

This demo doesn't use a single line of JS code to respond to the arrow keys.

Movement of the player is handled 100% by the upcoming `focusgroup` HTML attribute!

Focusgroup was definitely *not* made for this πŸ˜…
But, so cool to have this out of the box on the web.

More ➑️ open-ui.org/components/s...

04.03.2026 17:51 πŸ‘ 64 πŸ” 15 πŸ’¬ 4 πŸ“Œ 0
Post image

Even if it’s a little cold, when the sun is out - life is good

04.03.2026 13:48 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I must not Tailwind
Tailwind is the style-killer
Tailwind is the little-death that brings class plethora
I'll face Tailwind
I'll permit it to pass over and through my site
And when it's gone past I'll turn the inner eye to see its code
Where Tailwind has gone there'll be nothing
Only CSS will remain

01.03.2026 16:12 πŸ‘ 27 πŸ” 5 πŸ’¬ 1 πŸ“Œ 0
Preview
Piccalilli - level up your front-end development skills Premium courses, articles, links and newsletters give you a real-world, industry specific education that actually matters and that will far outlive any hype and help you level up your career.

We have a new @piccalil.li homepage!

After lots of research, we determined we were doing a bad job of talking about what we actually do, so this refresh aims to make that *very* clear.

piccalil.li

24.02.2026 09:36 πŸ‘ 73 πŸ” 10 πŸ’¬ 5 πŸ“Œ 1
Preview
Standard HTML Video & Audio Lazy-loading is Coming! | Scott Jehl, Web Designer/Developer A quick update on my team's work to bring video and audio lazy loading to browsers today

πŸ¦₯ A fun update over on the blog: πŸ¦₯
Standard HTML Video & Audio Lazy-loading is Coming!
scottjehl.com/posts/lazy-m...

22.02.2026 18:43 πŸ‘ 47 πŸ” 10 πŸ’¬ 1 πŸ“Œ 0

You want lists? You got lists!

In 2017 my Web #Typography book had ~300 words on styling lists. Now, in 2026, I've written 3000 words on the subject!

#CSS sure has moved on...

19.02.2026 12:29 πŸ‘ 32 πŸ” 5 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

In graph theory, there are algorithms that find the shortest path between two nodes. I made one with pure CSS (including the graph drawing).

Drag the nodes, and the shortest path will update in real-time!

css-tip.com/graph-theory/

A fun demo powered by all the modern & cool CSS features 🀩

16.02.2026 15:30 πŸ‘ 122 πŸ” 23 πŸ’¬ 9 πŸ“Œ 5
Preview
Background Patterns with CSS `corner-radius` You might need to know this someday: you can style a div, put the div into SVG, then put the SVG in to CSS and use it as a repeating background.

Background Patterns With CSS β€œcorner-radius”, by @preethisam.bsky.social (@frontendmasters.com):

https://frontendmasters.com/blog/background-patterns-with-css-corner-radius/

#css #backgrounds #effects #examples

15.02.2026 08:30 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Building a Computer with CSS - Amit Sheen - CSS Day 2025
Building a Computer with CSS - Amit Sheen - CSS Day 2025 YouTube video by Web Conferences Amsterdam

I’m excited to share that my session from CSS Day is now live on YouTube πŸŽ₯

Ever wondered what a CPU is actually built of? And if it's possible to build one using only #CSS? If so, I think you’ll enjoy it. πŸ‘

Would love to hear your thoughts! πŸ˜€

πŸ”— www.youtube.com/watch?v=PFqt...

13.02.2026 10:37 πŸ‘ 23 πŸ” 4 πŸ’¬ 2 πŸ“Œ 1
Code snippet detailing CSS anchor-scope property values, including single, multiple, and global value examples for web development.

Code snippet detailing CSS anchor-scope property values, including single, multiple, and global value examples for web development.

Using CSS Anchor Positioning with repeated components?

anchor-scope is now part of Baseline 2026 πŸ†•
It prevents tooltips/popovers from accidentally attaching to the wrong anchor elsewhere in the DOM.

Check it out πŸ‘‡
developer.mozilla.org/en-US/docs/...

13.02.2026 16:00 πŸ‘ 24 πŸ” 2 πŸ’¬ 2 πŸ“Œ 1
A <main> element with several nested divs. The two of interest are <div class="screen-blur"> and <div class="scanlines">.

A <main> element with several nested divs. The two of interest are <div class="screen-blur"> and <div class="scanlines">.

hey! thanks :)

there are a few different effects going on here, and they're all made with vanilla CSS. i'll try to break them down.

this is what the general markup looks like. there's a television wrapper with a few overlay layers: the two we're interested in are .screen-blur and .scanlines!

12.02.2026 19:51 πŸ‘ 10 πŸ” 1 πŸ’¬ 1 πŸ“Œ 1
Preview
CSS Animation Triggers: Playing animations on scroll without scrubbing. It's a match! | utilitybend CSS scroll-triggered animations let you use scroll position to determine when animations play. Combined with scroll-driven animations for the perfect scrollytelling experience. A Valentine's special.

πŸš€Do we like scroll-driven animations? yes! Do we want scroll-triggered animations? Also yes! Would it be cool to combine them? Ow hell yes! And that's just what I did in this year's Valentine's article, enjoy! ❀️❀️

It's quite lengthy, but also contains some hot tips πŸ”₯

utilitybend.com/blog/css-ani...

12.02.2026 10:48 πŸ‘ 17 πŸ” 5 πŸ’¬ 0 πŸ“Œ 1
CSS converting the oklch() function to an RGB color with color-mix() that takes a color variable and makes a calculation that returns white or black.

CSS converting the oklch() function to an RGB color with color-mix() that takes a color variable and makes a calculation that returns white or black.

Here's a pretty clever, albeit super math-y, way to approximate the contrast-color() function while we're waiting for full support.

css-tricks.com/approximatin...

11.02.2026 15:07 πŸ‘ 29 πŸ” 5 πŸ’¬ 0 πŸ“Œ 0
Post image

Today is the tenth anniversary of Firewatch's release. It remains the thing I'm most proud to have worked on. There's more of me inside of Firewatch than in any other gameβ€”and I have no doubt there are others on the team who would say the same about themselves. Thanks to everyone who ever played it.

09.02.2026 20:39 πŸ‘ 592 πŸ” 47 πŸ’¬ 35 πŸ“Œ 16
Preview
A Special Valentine This Valentine’s day, give your special someone a 50% discount for one of my courses!

I’m running my annual Valentine’s Day event again! πŸ’–

If you’ve registered for any of my courses in the past, you’ll find a one-time-use coupon code that has been generated just for you. It’ll provide a 50% discount on either of my courses. πŸ˜„

10.02.2026 22:11 πŸ‘ 37 πŸ” 6 πŸ’¬ 5 πŸ“Œ 0
Preview
SotB14 | State of the Browser Welcome to the fourteenth edition of State of the Browser, a yearly one-day, single-track conference with widely-varying talks about the modern web, accessibility, web standards, and more, organised b...

State of the Browser is sold out in-person, but Β£20 will buy you a whole day of online talks by industry experts.

2026.stateofthebrowser.com

10.02.2026 21:00 πŸ‘ 8 πŸ” 7 πŸ’¬ 1 πŸ“Œ 1
Video thumbnail

The progress() function is sorta like clamp() but returns 1 or 0. Combine it with calc() and you can get weird with it.

css-tricks.com/almanac/func...

10.02.2026 15:01 πŸ‘ 24 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
A mock-up of my Web Day Out lanyard – use JOIN_RICH for 10% off.

A mock-up of my Web Day Out lanyard – use JOIN_RICH for 10% off.

What’s new in web typography?

This is a question I’ll be answering at this year’s webdayout.com

I'll cover the paved cowpaths and the shiny things that bring expressiveness, fine detail, responsiveness, consistency and efficiency to your work.

Use JOIN_RICH to get 10% off.

#typography #css

10.02.2026 09:35 πŸ‘ 12 πŸ” 7 πŸ’¬ 0 πŸ“Œ 0
Preview
Underlining Links With CSS A practical guide to styling link underlines with modern CSS text-decoration properties. Perfect for bookmarking when you need a quick reference!

I always forget what properties are available now so I've written a quick post to put them all in one place

Underlining links with CSS

www.alwaystwisted.com/articles/und...

#FrontEnd #CSS #WebDev #WebDesign

09.02.2026 11:32 πŸ‘ 17 πŸ” 8 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Someone on reddit posted a demo where CSS truncates text from the middle.

They didn't post the code, so here is my shot at it with Flexbox

09.02.2026 17:31 πŸ‘ 85 πŸ” 10 πŸ’¬ 5 πŸ“Œ 1
Preview
CSS Bar Charts Using Modern Functions CSS-only bar charts are one of those things we've tackled a bunch of times in different ways. But how can modern CSS features finally make it not only trivial, but fun?

Feed: "CSS-Tricks"
By: Preethi on Thursday, February 5, 2026

06.02.2026 12:19 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

border-shape can handle both insets and outsets, so you can do effects like this chevron nav (corner-shape can't do both).

This means you get a perfectly-wrapping focus ring without needing to manage z-index or having it partially covered due to overlap.

Demo: codepen.io/una/pen/ByzY...

05.02.2026 20:08 πŸ‘ 206 πŸ” 31 πŸ’¬ 9 πŸ“Œ 6
Overview of the CSS code from the provided link

Overview of the CSS code from the provided link

πŸ’‘ CSS Tip!

Have you ever tried to use "auto" within clamp()? Unfortunately, it doesn't work, but it's now possible using the new calc-size()!

css-tip.com/clamp-auto/

The same applies to all the sizing values (min-content, max-content, fit-content, etc.)

05.02.2026 11:10 πŸ‘ 55 πŸ” 15 πŸ’¬ 4 πŸ“Œ 3
Video thumbnail

A CSS-only elastic hover effect, because why not?

css-tip.com/elastic-hover/

A chrome-only experiment using shape(), sibling-index(), linear(), etc.

03.02.2026 10:06 πŸ‘ 68 πŸ” 7 πŸ’¬ 2 πŸ“Œ 4
Video thumbnail

An Inverted radius tabs demo which uses anchor-positioning + corner-shape + :target
#cssonly

See the full demo on @codepen.io
codepen.io/cbolson/pen/...

04.02.2026 08:33 πŸ‘ 6 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Wild how far you can push "customizable select" with just #CSS

nerdy.dev/nice-select

03.02.2026 17:26 πŸ‘ 396 πŸ” 68 πŸ’¬ 15 πŸ“Œ 1
Preview
Fun shadow coding challenge I made a prototype 8 years ago and I’d love to see what people could do with that idea now, 8 years on..

Could scroll-driven animations update a value used by `box-shadow` to make it look like the shadow is coming from a fixed source of light?

Asks @bell.bz bell.bz/fun-shadow-c...

Answers @kittygiraudel.com kittygiraudel.com/2026/02/01/f...

02.02.2026 18:16 πŸ‘ 27 πŸ” 4 πŸ’¬ 4 πŸ“Œ 0