Search
How to Create CSS Charts With Interesting Shapes, Glyphs and Emoji
21.6.2021
Let’s forego the usual circles and bars we typically see used in charts for more eccentric shapes. With online presentations more and more common today, a quick way to spruce up your web slides and make them stand out is …
The post How to Create CSS Charts With Interesting Shapes, Glyphs...
Always Show Arrows for Number Input
21.6.2021
While I enjoy small details that make user interfaces more elegant, I also believe that less is more, especially when it comes to native behavior. One native behavior I dislike is that <input type="number" /> elements only show the increment and decrement arrows when the input is focused....
Gather Feedback Using the Amazing UserWell (Sponsored)
14.6.2021
Most websites and mobile apps collect all sorts of data to try to gain insights into what users are doing, not doing, and to gain insight into what users may want. Those metrics are useful but there’s a more valuable way to get information: direct feedback from users. Userwell is an awesome...
Adding Shadows to SVG Icons With CSS and SVG Filters
11.6.2021
Why would we need to apply shadows to SVG?
Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active)
…
The post Adding Shadows to SVG Icons With CSS and SVG Filters appeared...
JavaScript Numeric Separators
10.6.2021
Writing good code is important — writing code that’s easily human readable is a next level skill. It’s not often that APIs are introduced whose seemingly only useful function is making code more readable, but let me introduce you to JavaScript numeric separators: an API that lets...
Thumbnail Hover Effect with SVG Filters
9.6.2021
A simple thumbnail hover effect with an SVG filter distortion.
The post Thumbnail Hover Effect with SVG Filters appeared first on Codrops
How to Restart
4.6.2021
I recently wrote a .bat script on Windows to mine Ethereum when I’m not using my gaming PC to frag noobs. I have a friend who also tries to mine cryptocurrencies but their machines have AMD processors; every once in a while, the processor and the mining executable start fighting and...
CSS :is
31.5.2021
There are scores of developers who hate CSS; don’t get it, don’t want to get it, etc. Most of that is either down to inefficiencies within the language or misunderstanding of how to properly construct a website structure. I mostly love CSS but there are some parts of the language that...
How to Code a Crosshair Mouse Cursor with Distortion Hover Effect
26.5.2021
A quick tutorial on how to craft a fullscreen SVG crosshair mouse cursor with a special distortion hover effect.
The post How to Code a Crosshair Mouse Cursor with Distortion Hover Effect appeared first on Codrops
Prevent Windows from Sleeping
20.5.2021
I have a few processes on my Windows gaming PC that are critical but sometimes get impacted over night as Windows tells my beloved machine to tone it down. My machine has the necessary cooling so I’m happy to let the processes do their work. There is a setting in the UI which allows...
svg-loader: A Different Way to Work With External SVG
19.5.2021
SVGs are awesome: they are small, look sharp on any scale, and can be customized without creating a separate file. However, there is something I feel is missing in web standards today: a way to include them as an external …
The post svg-loader: A Different Way to Work With External...
SVGator 3.0 Reshapes the Way You Create and Animate SVG With Extensive New Features
13.5.2021
Building animations can get complicated, particularly compelling animations where you aren’t just rolling a ball across the screen, but building a scene where many things are moving and changing in concert. When compelling animation is the goal, a timeline GUI …
The post SVGator...
Not All Advice is Good Advice
6.5.2021
From the time we’re children, we’re trusting people. We rely on those close and older than us to point us toward success and “the right way”. One of the toughest days of our lives is when we realize our parents, or people we look up to, aren’t always perfect...
Swipey Image Grids
3.5.2021
I hope people think of SVG as a vector format that is good for drawing things. There is plenty more to know, but here’s one more: SVG is good for composition. You draw things at very specific coordinates …
The post Swipey Image Grids appeared first on CSS-Tricks.
You can support...
Jenny B Kowalski’s A-Z (and a-z) as Variable Letterforms
30.4.2021
Jenny B Kowalski has been posting a-letter-a-day on Instagram exploring multi-axis variable/responsive letterforms. They are very clever in that one of the axes controls an uppercase-to-lowercase conversion, literally morphing the shape of the letters from an uppercase version to a …
The...
Image Optimization Strategies Compared (Sponsored)
30.4.2021
We all know the stats. Slower website performance is strongly linked to higher abandon rates and lower conversions. What you may not know is that the main culprit is bloated web page payloads, bringing down our otherwise performant web pages via images. That being said, images also drive...
Regular Expression Match Groups
26.4.2021
Regular expressions are incredibly powerful but can be difficult to maintain. They’re a skill you learn on the job and, when the suits walk by, make you look incredibly smart if you have a few up on your screen. How can we solve the maintainability problem? With a match groups, as Addy Osmani...
How to Add a Double Border to SVG Shapes
21.4.2021
Let’s say someone asks you to add a double border to some random geometric SVG shapes. For some reason, you can’t use any graphic editor — they need to be generated at runtime — so you have to solve it …
The post How to Add a Double Border to SVG Shapes appeared first on CSS-Tricks.
You...
Object.entries
20.4.2021
Navigating and managing data structures is a really important skill for every level of engineer to have and improve upon. Over the years, the JavaScript language has continued to provide more methods for managing data structures, from Object.keys to Object.values and so on. One of my favorites...
CSS Smooth Scroll
19.4.2021
Improving the user experience of web applications has always been a priority of mine. I always come back to the same though I’ve had for 20 years: “users expect a web app to work — let’s make the app a joy to use.” Over the years we’ve employed JavaScript...