Best of CSSSeptember 2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    Making a fast website is SUPER EASY

    For a website whose goal is to convert customers by selling goods or services, the website should be attractive to look at. Images take up a huge part of the website's total size. As of August 2022, images made up on average 45% on desktop and 44% on mobile of a page’s total weight. Optimizing the images can therefore result in big and easy wins.

  2. 2
    Article
    Avatar of tuts_plusTuts+·4y

    Learn React 18: The Complete React Developer Course

    Learn React 18: The Complete React Developer Course is 3 hours 40 minutes long and it’s split into 27 lessons in total. In React, we primarily use props (short for properties) to pass data to our components. The easiest way to understand props is to think of them like the attributes you can pass to HTML elements in web development.

  3. 3
    Article
    Avatar of hnHacker News·4y

    58 bytes of css to look great nearly everywhere

    58 bytes of css to look great nearly everywhere (enhanced version) This should be simple drop-in css. I've since changed the padding to 1.5rem for a happier compromise between mobile and desktop displays. The padding also provides sorely-needed top and bottom whitespace.

  4. 4
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    JavaScript DOM Tutorial – How to Build a Calculator App in JS

    The Document Object Model (DOM) is a logical structure that defines how elements in a document can be manipulated and changed. You must first learn how to access elements in the DOM before you can manipulate it. How to create a DOM Element JavaScript requires that any element be created before it can be added to the DOM. For this, we use the document.createElement() method.

  5. 5
    Article
    Avatar of communityCommunity Picks·4y

    Here's how I increased a website performance by 21%!

    The total fontawesome package v5.1 is approximately about 12mb (don't worry, we aren't using all!)

  6. 6
    Article
    Avatar of asayerasayer·4y

    Glassmorphic UI in React using CSS

    Glassmorphism is a style that uses the properties of glass to enhance your design. It gives a translucent or transparent look to its elements. This effect is achieved by blurring an object, allowing the background to shine through. The layered interface maintains a clean look that’s easy on the eyes.

  7. 7
    Article
    Avatar of asayerasayer·4y

    Micro-Interactions using Anime.js

    Micro-interactions are small, functional animations that give the user support using visual feedback. They are just like other interactions with gadgets; they’re used to give users meaningful feedback because they must always be aware of the results of their actions. We imported Machine from XState and created a generic type for our TogglEvent, setting type to TOGGLE, and created our state machine.

  8. 8
    Article
    Avatar of asayerasayer·4y

    The Top 7 Component Libraries for React

    React is one of the best JavaScript libraries for building intuitive and responsive user interfaces. Ant Design, Ant Design and Material UI are among the most popular React UI libraries. All the components in Onsen UI are auto-styled according to the platform, which means the same source code can be used for both platforms. The library is absolutely CSS-based, and there is no JavaScript functionality.

  9. 9
    Article
    Avatar of devtoDEV·4y

    Simple way to generate PDF from HTML

    Arial, Helvetica, sans-serif, font-family, color and #container can be used to generate a PDF from HTML. We will take advantage of the window.print() and some specific CSS. Add the rest of the styles for your custom pdf.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    What is Tailwind CSS? A Beginner's Guide

    Tailwind CSS is a new tool that takes away a lot of the burden from us. There are many ways to write CSS out there – like Vanilla CSS3, LESS, SCSS, Bootstrap, styled-components, Windi CSS, and more – and even our OG HTML. The concept of Atomic CSS is not new but tailwind CSS takes it to another level.

  11. 11
    Article
    Avatar of asayerasayer·4y

    Understanding the useId hook in React

    UseId hook generates a stable id that can be used across any application’s server and client side of any application. The useId hook was formerly known as the useOpaqueIdentifier hook, but there were many concerns when using it. We have looked at isomorphic applications and why using libraries like uuid or options like Math.random is bad.

  12. 12
    Article
    Avatar of thisdotThis Dot·4y

    What's new in Tailwind CSS 3?

    Tailwind CSS v3 was released at the end of 2021. The new engine is so much faster that it takes only a few milliseconds to fire up the server. It detects all the classes you use, and it will update the output file live. It also has new text decoration utility classes to make fancy underline styles.

  13. 13
    Article
    Avatar of communityCommunity Picks·4y

    Why our websites are slow — Importance of bundle size

    A new story tells the impact of bundle size on application performance and a mind-boggling story to understand why websites can be slow. The story begins way back exactly one year ago. For one year I have covered so many stories on react application optimisation but today I have a new perspective on seeing react applications.

  14. 14
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Code a 2D Game Using JavaScript, HTML, and CSS

    The game uses just HTML, CSS and plain JavaScript without frameworks or libraries. You will build a game completely from scratch featuring everything from sprite animation to parallax backgrounds.

  15. 15
    Article
    Avatar of dwbDavid Walsh·4y

    CSS :autofill

    CSS:autofill Autofill is an unnatural act, so signaling to that the value in an input was changed without control is important. To add custom CSS styles to inputs whose contents have been autofilled by the browser, you can use the autofill pseudo-class.

  16. 16
    Article
    Avatar of asayerasayer·4y

    An Introduction to Native Web Components

    Native Web Components provide a way to create encapsulated, single-responsibility, custom functionality that can be used with or without a framework. The concepts were first introduced by Alex Russell at the Fronteers Conference in 2011. The browser can call one of six handler methods depending on the current state of the web component. It typically runs clean-up operations such as aborting in-flight Fetch()requests.

  17. 17
    Article
    Avatar of webweb.dev·4y

    Introducing Learn HTML

    Learn HTML is a brand new course written by Estelle Weyl that will take you through all you need to know about HTML today. We're landing the first five modules today, the rest will follow in staged launches over the next couple of months.

  18. 18
    Article
    Avatar of devtoDEV·4y

    Sass: Interpolation & Nesting

    Interpolation can be used almost anywhere in a Sass stylesheet to embed the result of a SassScript expression into a chunk of CSS. It allows us to insert sass expressions into a simple SASS or CSS code. We will discuss nesting in further detail in the following post.

  19. 19
    Article
    Avatar of communityCommunity Picks·4y

    The Battle of the Units: PX vs REM vs EM

    The Battle of the Units: PX vs REM vs EM in this article. I'm going to go through a few CSS units for customizing the font-size of text when building webpages. There are a lot of other units such as pt, pc, ex, etc. I will be focusing on the 3 most popular units; px class="one-em">1 em based on 10px.

  20. 20
    Article
    Avatar of phProduct Hunt·4y

    UI Foundations Kit - Beautifully designed, React components for MUI

    MUI UI Foundations Kit provides 64 well-designed, copy-and-pasteable React components.

  21. 21
    Article
    Avatar of communityCommunity Picks·4y

    Is CSS Transform Dead?

    CSS is adding lots of new features and some of the smaller quality of life features they added recently were the addition of the translate, rotate, and scale properties. These properties almost entirely remove the need to use the transform property which is incredibly nice since there are tons of possibilities this opens up that were very difficult if not impossible before. There are a few ways to get around this issue.

  22. 22
    Article
    Avatar of devtoDEV·4y

    Build a Web Paint Application

    The Web Paint Application is a web application built using HTML5, CSS and JavaScript. You can draw lines, change color & size of stroke, erase & get custom color as well. This tutorial focuses on building this project and not on HTML, CSS or JavaScript.

  23. 23
    Article
    Avatar of communityCommunity Picks·4y

    Using Only CSS to Recreate Windows 98

    Using Only CSS to Recreate Windows 98 Sponsor, I try and recreate Windows 98 using nothing else apart from CSS and HTML. See the Pen CSS Only Windows 98 by smpnjn (@smpnjn) on CodePen. The demo can be found here, since it is better viewed in full screen mode. The difficulty is you can only have one label associated with one input.

  24. 24
    Article
    Avatar of ossOpen Source Way·4y

    A beginner's guide to making a dark theme for a website

    dark theme can be added to your website with a simple and easy-to-add-the-dark theme. The dark theme is a dark-themed theme to the top of the list of icons. The for...of loop of JavaScript applies ".dark-theme" class styling properties to each card on the page, regardless of its position. It applies the theme to all web parts selected with querySelectorAll(). Without this, the font and background color remain unchanged. The font and color remains unchanged. If you set a dark theme, the dark theme will not work as expected.

  25. 25
    Article
    Avatar of bootstrapBootstrap·4y

    Bootstrap 5.2.1

    Bootstrap 5.1 is here with fixes from our latest minor release, v5.1. As a patch release, these changes are limited to bug fixes, documentation updates, and some dependency updates.