Written by: Amejimaobari Victor
Behind every technology, there should be a guide for its use. While JavaScript modules make it easier to write “big” programs, if there are no principles or systems for using them, things could easily become difficult to maintain.
Continue reading "A Well-Designed JavaScript Module System is Your First Architecture Decision" at CSS-Tricks
Written by: Amit Sheen
One of the best-known examples of CSS state management is the checkbox hack. What if we want a component to be in one of three, four, or seven modes? That is where the Radio State Machine comes in.
Continue reading "The Radio State Machine" at CSS-Tricks
Written by: Sunkanmi Fafowora
Craving for a view transition? Sunkanmi has lots of common transitions you can drop into your website right now!
Continue reading "7 View Transitions Recipes to Try" at CSS-Tricks
Written by: Daniel Schwarz
Chrome 147 becomes the first to implement the CSSPseudoElement JavaScript interface, and allow the startViewTransition() method to be called on […]
Continue reading "Quick Hit #122" at CSS-Tricks
Written by: Daniel Schwarz
Chrome 147 becomes the first to ship border-shape as well as the scroll range for view timelines.
Continue reading "Quick Hit #121" at CSS-Tricks
Written by: Preethi
A clever approach for selecting multiple dates on a calendar where the :nth-child()‘s “n of selector” syntax does all the heavy lifting… even in the JavaScript.
Continue reading "Selecting a Date Range in CSS" at CSS-Tricks
Written by: Daniel Schwarz
Chrome 147 ships contrast-color() (the Color Level 5 version that only resolves to black or white), making it baseline.
Continue reading "Quick Hit #120" at CSS-Tricks
Written by: Saleh Mubashar
Cascade layers, specificity tricks, smarter ordering, and even some clever selector hacks can often replace !important with something cleaner, more predictable, and far less embarrassing to explain to your future self.
Continue reading "Alternatives to the !important Keyword" at CSS-Tricks
Written by: Daniel Schwarz
Continue reading "Quick Hit #119" at CSS-Tricks
Written by: Abhishek Pratap Singh
Chrome 145 introduces the column-height and column-wrap properties, enabling us to wrap the additional content into a new row below, creating a vertical scroll instead of a horizontal scroll.
Continue reading "Looking at New CSS Multi-Column Layout Wrapping Features" at CSS-Tricks
Written by: Daniel Schwarz
font-size-adjust calculator.
Continue reading "Quick Hit #118" at CSS-Tricks
Written by: Temani Afif
Creating rectangles, circles, and rounded rectangles is the basic of CSS. Creating more complex CSS shapes such as triangles, hexagons, stars, hearts, etc. is more challenging but still a simple task if we rely on modern features.
Continue reading "Making Complex CSS Shapes Using shape()" at CSS-Tricks