Best of CSSAugust 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    CSS finally adds vertical centering in 2024

    In 2024, CSS introduces the `align-content` property for vertical centering in flow layout, eliminating the need for flexbox or grid. Previously, achieving vertical alignment required complex workarounds. This update simplifies the process, allowing vertical alignment with a single CSS property in the default layout.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    What is CSS Subgrid? A Practical Tutorial

    CSS Subgrid addresses the challenge of maintaining perfect alignment in web layouts with varying user-generated content. This tutorial guides you through building a flexible products section using Subgrid, ensuring nested elements align consistently with their parent grid. The tutorial includes HTML and CSS code examples, demonstrating how Subgrid simplifies nested grid structures and enhances design consistency.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    TailwindCSS Buttons

    The post provides three methods for including TailwindCSS buttons in your project: using the Tailwind JIT CDN, adding the necessary code to a TailwindCSS project with JIT mode enabled, or pasting the code into a Codepen for immediate use.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Tailwind Toots

    Tailwind Toots offers mini-video tutorials on Tailwind CSS created by simonswiss.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Tailwind is an Anti-Pattern

    The post critiques Tailwind CSS, arguing that its utility-first approach isn't new and has significant downsides such as bloated HTML, unnecessary naming conventions, and larger bundle sizes. It suggests that using Tailwind can hinder learning essential CSS patterns and result in code that's less readable and harder to maintain. The author emphasizes that traditional CSS practices and newer tools like CSS Modules and ShadowDOM are more efficient and sustainable for web development.

  6. 6
    Article
    Avatar of logrocketLogRocket·2y

    Creating 3D effects in CSS

    Learn to create 3D effects in CSS by using properties like `transform`, `translate`, and `perspective`. Understand how to simulate depth and height, create reflections and shadows, and animate elements to enhance web design. Experiment with code examples that illustrate how to rotate, translate, and scale elements in a virtual 3D space for interactive and visually compelling pages.

  7. 7
    Article
    Avatar of devtoDEV·2y

    The Solar System in CSS

    Learn how to create a simple yet responsive solar system using modern CSS techniques, including grid layout and radial gradients. The guide demonstrates how to use CSS variables for planet sizes and animations for planet orbits, making it a concise tutorial for enhancing your web development skills.

  8. 8
    Video
    Avatar of youtubeYouTube·2y

    Learn CSS Border Animations in 6 Minutes

    Learn to create border animations in CSS using unconventional properties, pseudo-elements, and custom properties. The tutorial covers how to set up and animate a conic gradient to produce glowing and rotating border effects with step-by-step guidance.

  9. 9
    Article
    Avatar of webdevbeehiivWeb Developer·2y

    Defensive CSS 🛡️, Animated Entrance Effects 🎬, CSS Loading Animation⏳

    Enhance your web development skills with just 5 minutes a day by learning about defensive CSS techniques, animated entrance effects, and CSS loading animations.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    Nue 1.0 (Beta)

    Nue 1.0 (Beta) introduces an intuitive web framework designed for UX developers. It simplifies web development, reducing reliance on extensive JavaScript and complex frameworks like React. Key features include a global design system, improved CSS theming, seamless view transitions, and easier setup. The latest release also includes extensive documentation and various enhancements to streamline building professional websites quickly and efficiently.

  11. 11
    Article
    Avatar of lambdatestLambdaTest·2y

    CSS Grid Best Practices: Guide With Examples

    CSS Grid is a powerful layout system for creating complex, responsive grid-based layouts. Adhering to best practices such as using flexible units like *fr* or *minmax*, choosing between explicit and implicit grids, and testing for responsiveness can significantly enhance your web designs. Additionally, combining Grid with other layout methods like Flexbox, nesting grids, and using multiple grids on a page can provide additional flexibility and modularity in your layouts.

  12. 12
    Article
    Avatar of uxplanetUX Planet·2y

    Corner Radius of Nested Elements in UI design

    Using the same corner radius for both parent and child elements in UI design can lead to inconsistent visual gaps. To achieve better visual balance, consider using a slightly smaller corner radius for child elements and apply the formula: Outer radius = Inner radius + Padding. It is also important to use visual judgment to spot any imbalances.

  13. 13
    Article
    Avatar of communityCommunity Picks·2y

    neumorphism buttons

    HTML and CSS preprocessors like Markdown, Pug, and Autoprefixer can enhance the coding experience on CodePen. It's important to link resources using the HTTPS protocol for compatibility. Preprocessors simplify coding by offering features like variables and mixins. When linking code resources, ensure using the correct URL extensions.

  14. 14
    Article
    Avatar of cassidooCassidy's blog·2y

    Layering CSS gradients

    You can layer CSS gradients on top of each other to create visually interesting effects. This post explores using such gradients for larger backgrounds and text highlights, with a demo showcasing a marker highlight effect.

  15. 15
    Article
    Avatar of codepenCodePen·2y

    Exploring 21 Unique Custom Cursors for Your Site – CodePen

    Microinteractions, such as custom cursors, can enhance user experiences by adding uniqueness and interactivity to a site. The post explores various types of custom cursors, including trailing, revealing, and interactive game cursors, along with their implementation techniques using CSS and JavaScript. Performance and accessibility considerations are also discussed. Real-life application examples and relevant CodePen demos provide practical insights for web design and development.

  16. 16
    Article
    Avatar of codropsCodrops·2y

    Scroll-based SVG Filter Animations on Text

    SVG filters offer powerful effects for web design. The author explores different scroll-triggered filter effects, inspired by the EDITORA website. Traditionally, SVG filters were applied to SVG text, but this experiment uses HTML headings. A demo is available for further exploration. The post encourages readers to experiment with SVG filters and provides additional resources for inspiration.

  17. 17
    Video
    Avatar of kevinpowellKevin Powell·2y

    Very small CSS tweaks for better forms

  18. 18
    Article
    Avatar of communityCommunity Picks·2y

    Animated masked SVG Path

    The post discusses using HTML and CSS preprocessors to streamline web development, particularly focusing on animating SVG paths with masks. It advises on linking resources securely via https, using preprocessors like Pug and Sass for enhanced HTML and CSS authoring, and provides practical tips for including external CSS and JavaScript in CodePen projects.

  19. 19
    Article
    Avatar of uxplanetUX Planet·2y

    Shadows in UI design: Tips & Tricks

    Effective use of shadows can enhance both the visual appeal and functionality of a UI. Different types of shadows, such as soft, strong, and inner shadows, serve varied purposes. Choosing the right color, maintaining consistency in elevation, using interaction-based shadows, deciding on a light source, layering shadows, and considering performance are key design tips. Tutorials for creating shadows in Figma are also included.

  20. 20
    Article
    Avatar of logrocketLogRocket·2y

    Optimizing CSS time-based animations with new CSS functions

    Discover how new CSS functions like mod(), round(), and trigonometric functions simplify the creation of time-based animations, offering increased flexibility over traditional keyframes. Understand the advantages, examples, and implementation strategies for utilizing these functions in web development to enhance user experience. Explore comparisons between CSS functions, CSS keyframes, and JavaScript for dynamic animations.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    An online course that teaches the fundamentals of CSS for React/Vue devs

    Many front-end developers find CSS frustrating due to its implicit nature and lack of immediate feedback for errors. However, understanding the underlying systems and layout algorithms can make CSS more consistent and enjoyable. A new online course aims to expedite this learning process by providing comprehensive, structured lessons on mastering CSS, making it a fun and rewarding experience for developers.

  22. 22
    Video
    Avatar of youtubeYouTube·2y

    Learn CSS Flexbox in 20 Minutes (Course)

    Learn the essentials of CSS flexbox to create responsive and efficient web layouts. The post covers core concepts such as aligning items using justify content and align items properties, the significance of the main and cross axes, and properties like flex direction, flex wrap, flex grow, and flex shrink. Practical examples demonstrate how to manage spacing and positioning, making your webpages adaptable to various screen sizes.

  23. 23
    Article
    Avatar of webtoolsweeklyWeb Tools Weekly·2y

    CSS Tools, AI Tools, JS Library Plugins

    Join Visual Studio Live! at the Live! 360 Orlando Tech Con for a customizable learning experience with over 200 sessions on Microsoft developer tools and technologies. Discover diverse tools like Batman-Comic.CSS and TailwindMerge for Laravel, and AI utilities like Meta AI and OpenSearch GPT. JavaScript enthusiasts can find plugins like Tree.js and Nano Stores Router to enhance their projects. Stay updated with newsletters such as Bytes and explore commercial apps like Otto Engineer. For music and coding fans, check out Strudel REPL for dynamic music creation in the browser.

  24. 24
    Article
    Avatar of css_tricksCSS-Tricks·2y

    CSS Olympic Rings

    The post showcases a modern approach to creating animated 3D Olympic rings using vanilla CSS, focusing on efficiency, readability, and leveraging modern CSS features like trigonometric functions and relative color syntax. The project involves using layers, custom properties, and transforms to create the ring shapes and their animations, demonstrating the power and flexibility of current CSS standards.

  25. 25
    Article
    Avatar of communityCommunity Picks·2y

    Why is CSS-in-JS slow?

    CSS-in-JS solutions like Styled Components and Emotion CSS allow for complex stylesheets using JavaScript knowledge, but they come with performance downsides. Traditional CSS parsing in the browser is quick but not free, and CSS-in-JS adds additional steps that can slow down rendering. Some modern tools like StyleX and PandaCSS mitigate these issues by compiling CSS at build time instead of runtime. Understanding these nuances is crucial for selecting the right styling approach for your project.