Search
Of Course We Can Make a CSS-Only Clock That Tells the Current Time!
16.7.2021
Let’s build a fully functioning and settable “analog” clock with CSS custom properties and the calc() function. Then we’ll convert it into a “digital” clock as well. All this with no JavaScript!
Here’s a quick look at the clocks …
The post Of Course We Can Make a CSS-Only Clock That Tells...
Build Complex CSS Transitions using Custom Properties and cubic-bezier()
14.7.2021
I recently illustrated how we can achieve complex CSS animations using cubic-bezier() and how to do the same when it comes to CSS transitions. I was able to create complex hover effect without resorting to keyframes. In this article, I …
The post Build Complex CSS Transitions using Custom...
The Dilemma of Naming Font Size Variables
6.7.2021
Normally, a project will have a set of pre-determined font sizes, usually as variables named in such a way that seeks some semblance of order and consistency. Any project of considerable size can use something like that. There are always …
The post The Dilemma of Naming Font Size Variables...
Positioning Overlay Content with CSS Grid
28.6.2021
Not news to any web developer in 2021: CSS Grid is an incredibly powerful tool for creating complex, distinct two-dimensional modern web layouts.
Recently, I have been experimenting with CSS Grid and alignment properties to create component layouts that …
The post Positioning Overlay Content...
Mexico’s Third Richest Man Recommends Bitcoin, His Bank Is Working to Accept BTC, Says Fiat Money Is a Fraud
28.6.2021
Ricardo Salinas Pliego, Mexico’s third-richest man and founder of Grupo Salinas, sees bitcoin as an asset with extraordinary properties, describing the cryptocurrency as “gold for the modern world.” He recommends bitcoin, thinks that fiat money is a fraud and the idea of the U.S....
Custom Property Brain Twisters
25.6.2021
I am part of that 82% that got the answer to Lea Verou's quiz wrong. Stephen Shaw posted a similar quiz as well and it's a fun exercise sharpen your CSS chops.
The post Custom Property Brain Twisters appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter
“Weak declaration”
23.6.2021
PPK looks at aspect-ratio, a CSS property for layout that, for the most part, does exactly what you would think it does. It’s getting more interesting as it’s behind a flag in Firefox and Safari now, so we’ll have …
The post “Weak declaration” appeared first...
Upland Is Celebrating 1 Million NFT Properties Minted in the Metaverse
23.6.2021
Upland has just hit a major milestone in their platform, and for the NFT landscape as a whole. Being one of the world’s fastest growing digital metaverses, Upland’s users have recently minted the millionth NFT property on the platform. Not long after being featured on CBS/Paramount...
Using the `outline` Property as a Collapsable Border
18.6.2021
The outline property in CSS draws a line around the outside of an element. This is quite similar to the border property, the main exception being that outline isn’t a part of the box model. It is often used for …
The post Using the `outline` Property as a Collapsable Border appeared first...
Drawing Graphics with the CSS Paint API
18.6.2021
A practical introduction to the CSS Paint API with hands-on examples.
The post Drawing Graphics with the CSS Paint API appeared first on Codrops
Celebrating Upland’s Genesis Week With a Big Bitcoin Giveaway
8.6.2021
Upland.me is a blockchain-based game in which users can buy, sell, and trade virtual NFT properties mapped to the real world. By becoming a digital landowner, users can build properties, earn UPX coins, and even cash out their gains to USD. Currently open in cities including NYC, San Francisco...
Why On-Chain Governance Is Critical for Blockchain Growth and Longevity
3.6.2021
The decentralized properties that make blockchain architecture unique can also be its Achilles heel, demonstrating the importance of bringing network governance on-chain to promote a more inclusive and democratized consensus on network upgrades. Governance Transformation Is the Key To Unlocking...
Are Custom Properties a “Menu of What Will Change”?
2.6.2021
PPK laid out an interesting situation in “Two options for using custom properties” where he and Stefan Judis had two different approaches for doing the same thing with custom properties. In one approach, hover and focus styles for a …
The post Are Custom Properties a “Menu...
Trigonometry in CSS and JavaScript: Getting Creative with Trigonometric Functions
2.6.2021
In the second part of this series on trigonometry, we’ll explore JavaScript trigonometric functions and learn how we can apply them to our CSS code.
The post Trigonometry in CSS and JavaScript: Getting Creative with Trigonometric Functions appeared first on Codrops
Data Suggests Fed’s MBS Operations and Wall Street Investors Behind Inflated US Real Estate Market
22.5.2021
The Federal Reserve and America’s big banks have significantly inflated home prices across the U.S. according to a number of statistics. In many towns across the nation, home sales are facing bidding wars and certain regions are seeing property shortages. One report notes that homebuyers...
JSON in CSS
21.5.2021
Jonathan Neal tweeted a heck of a little CSS trick the other day, putting JSON inside CSS and plucking it out with JavaScript. Valid values for custom properties are quite liberal! So this looks for a CSS rule (e.g. a …
The post JSON in CSS appeared first on CSS-Tricks.
You can support...
Custom State Pseudo-Classes in Chrome
6.5.2021
There is an increasing number of “custom” features on the web platform. We have custom properties (--my-property), custom elements (<my-element>), and custom events (new CustomEvent('myEvent')). At one point, we might even get custom media …
The post Custom State Pseudo-Classes...
Is Vendor Prefixing Dead?
5.5.2021
Let‘s take a quick stroll down memory-lane to revisit how vendor prefixing CSS properties came to be. I hope I don’t trigger PTSD for anyone!
It‘s not clear who started prefixing, or when it began exactly. What is clear, is …
The post Is Vendor Prefixing Dead? appeared first...
Dynamic CSS Masks with Custom Properties and GSAP
4.5.2021
Learn how to animate CSS masks based on the cursor position using GSAP and custom properties for a unique spotlight effect.
The post Dynamic CSS Masks with Custom Properties and GSAP appeared first on Codrops
Safari 14.1 Adds Support for Flexbox Gaps
30.4.2021
Yay, it’s here! Safari 14.1 reportedly adds support for the gap property in flexbox layouts. We’ve had grid-gap support for some time, but true to its name, it’s limited to grid layouts. Now we can use gap in either type …
The post Safari 14.1 Adds Support for Flexbox Gaps...