Matthew Morete's Avatar

Matthew Morete

@matthewmorete.com

Building websites in Belfast He/Him

118
Followers
274
Following
48
Posts
20.11.2023
Joined
Posts Following

Latest posts by Matthew Morete @matthewmorete.com

The direction aware trick is so clever it could probably be its own article

12.02.2026 21:46 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

6 digit hex codes take 2 optional digits (always 2, 1 would be invalid) to control opacity from 0-99% in 1% increments.

#00000000 is also black at 0% opacity.

Works for any hex code to quickly control transparency!

03.02.2026 20:13 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

You can also use any 3 digit hex code followed by a 0, for 0 opacity, or any 6 digit code followed by 00.
#ccc0 or #cccccc00 would also work

03.02.2026 19:57 πŸ‘ 5 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

I manually added it in dev tools:

20.01.2026 18:32 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image Post image

Sure, I'm seeing this, but can't see corner shape.
Maybe the pen didn't update? Cause I can't see it in the pen's code either

20.01.2026 18:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I'm just realising how outdated my Safari is lol, so this might not be useful information

20.01.2026 15:32 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Doesn't seem to be working for me in Safari 18.3

20.01.2026 15:32 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Path to CSS Shape Convert SVG path data to CSS shape() function.

path-to-shape.netlify.app Doubtful this was what youre looking for but I made a converter.

Pairs well with the best path editor I've seen: yqnn.github.io/svg-path-edi...

20.01.2026 15:21 πŸ‘ 6 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
PersonalSit.es Personal sites are sick as hell, so this site was built so we can all discover each other's. This directory of links are by folks that want to share their site with the world.

Go to personalsit.es

Hit the β€œgo to a random site link”

Enjoy

15.01.2026 18:55 πŸ‘ 142 πŸ” 30 πŸ’¬ 6 πŸ“Œ 5

It's 2025, stop putting http-equiv="X-UA-Compatible" in your <head>

04.06.2025 18:16 πŸ‘ 21 πŸ” 6 πŸ’¬ 2 πŸ“Œ 0
Preview
LGBTQ+ Flags Coded in CSS What different LGBTQ flags mean and how to code them with CSS and a single HTML element. A little bit of history and a little bit of tech for this Pride Month. :: Blog post at Alvaro Montoro's Persona...

June is Pride Month. In this article, I explore several LGBTQ+ flags, how to recreate them using CSS and a single HTML element (fully responsive so they could double as icons), and share the history behind some of them.
alvaromontoro.com/blog/68009/l...

#css #webDevelopment #PrideMonth #CSSArt

01.06.2025 20:27 πŸ‘ 45 πŸ” 17 πŸ’¬ 5 πŸ“Œ 0
Preview
The Layout Maestro An interactive course focused on how to think, build, and test a layout with real-world examples.

I’m working on a CSS course: The Layout Maestro.

πŸ‘‰ Sign up for updates: layoutmaestro.ishadeed.com

πŸ““ Read the note: ishadeed.com/note/layout-...

25.05.2025 06:38 πŸ‘ 121 πŸ” 14 πŸ’¬ 2 πŸ“Œ 3

I just tried again and it worked! Sorry to have bothered you with that! I did have an error at the time but must have been something wrong on my end.

19.05.2025 17:15 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

*miss how concise the SVG version is

11.05.2025 18:55 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yeah definitely, i wonder if it was just an easier path forward to make something new than wading into all the complexities off SVG. I slightly appreciate the increased readability but wish how concise the SVG version is

11.05.2025 18:54 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Path to CSS Shape Convert SVG path data to CSS shape() function.

path-to-shape.netlify.app had the same thought so made this, pretty basic but does the job

11.05.2025 18:24 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

@cssweekly.com Hi Zoran, was trying to submit a link to you via the form on your website, but it doesn't seem to be working, keeps giving me an error. Just FYI!

09.05.2025 18:30 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Path to CSS Shape Convert SVG path data to CSS shape() function.

Convert SVG path to #css Shape()
path-to-shape.netlify.app
Turns pixel based values into responsive percentages.

Was very happy to discover the new shape() fully recreates the svg syntax, by far the hardest part is just parsing a svg path

09.05.2025 17:56 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Don't think you need a label on a nav so they gotta be removing it. Amazing

08.05.2025 13:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Use of ch unit considered inappropriate (in certain circumstances) When did we start using the ch unit to specify the maximum length for a line of text in CSS? To do so makes assumptions that don’t necessarily hold up, and there are more appropriate units to use. Als...

clagnut.com/blog/2432
This has totally convinced me. No more max-inline-size: 60ch, long live max-inline-size: 30rem

20.03.2025 18:38 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Just to add to the idea of fallback with 'color-mix': you can get equivalent colours if you prepare blacks/whites that are the same as the base colour but with a different lightness
codepen.io/matthewmoret...
Ignore the weird purple shift in the preview...

12.03.2025 12:35 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

+1 to what ALA said, but also capitalise applies to every word, where as proper title case excludes things like 'of'/'or' etc

12.03.2025 12:13 πŸ‘ 2 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
LOW←TECH MAGAZINE This is a solar-powered website, which means it sometimes goes offline

At the time of reading, this website is at 27% battery life, adding a dimension of anxiety that I didn't know could exist

12.03.2025 03:05 πŸ‘ 73 πŸ” 13 πŸ’¬ 5 πŸ“Œ 1

Thank you!

28.02.2025 18:14 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Custom Property Fallbacks This post starts with quite a tricky little quiz about what a color value resolves to be.

A short post on working with possibly invalid #css custom properties and their weird fallback rules
frontendmasters.com/blog/custom-...

28.02.2025 16:23 πŸ‘ 6 πŸ” 3 πŸ’¬ 0 πŸ“Œ 1
Ms Casey from Severence

Ms Casey from Severence

your outie always uses semantic html

18.02.2025 23:35 πŸ‘ 240 πŸ” 31 πŸ’¬ 10 πŸ“Œ 2

Sorry to pick this up weeks later but was just thinking about it. In this situation I think it's because it's an svg element being animated with svg animation (rather than an html element being animated with css). But good to know that works! Can probably revisit somethings with that in mind

08.02.2025 14:34 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Simple Animated Text Gap ...

Animating the gap between letters with some straight forward maths and CSS. Works regardless of character count, but until we get sibling-count() and sibling-index() you'll need to set these manually

codepen.io/matthewmoret...

08.02.2025 13:02 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
SVG Filters dont apply if children are animated in safari ...

Safari doesn't apply SVG filters if any of the children are animated, which in practise is limiting that you basically can't use svg filters anywhere for anything 😭
codepen.io/matthewmoret...

27.01.2025 13:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

I feel like there's a lot of people who have to write css, but dont want view it as part of their job or craft, it's just something they have to do. So I can see why they wish it was smaller and simpler. Cant relate cause CSS is my favourite bit, I hope they never stop adding more

24.01.2025 14:36 πŸ‘ 8 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0