Skip to content

#css

11 posts tagged css. All posts

  1. AI & dataSix ChatGPT prompts I use for code review, commit messages and blog draftsCopy-paste ChatGPT prompts for rewriting code to a style guide, writing tests, explaining code, writing commit messages and test notes, and drafting blog posts.
  2. JavaScript & webAn endless road animation for a car in React and CSSMake a car look like it is driving forever by scrolling dashed road markings with a CSS keyframe animation inside a small React component.
  3. .NET & C#HTML and CSS basics: page structure and three ways to add stylesA short history of the Web, the structure of a minimal HTML document, and how to apply CSS with external stylesheets, style elements and inline styles.
  4. JavaScript & webA React image component with a loading skeleton and fallback imageBuild a React image component that shows a shimmer skeleton while the image loads and swaps to a fallback image if it fails, without error loops.
  5. JavaScript & webBuilding a responsive price card component in ReactHow I built a React price card with an image, nightly price, host and total, then made it responsive with a media query and added a hover zoom in CSS.
  6. JavaScript & webCSS-in-JS vs plain CSS in React, with styled-components examplesThe trade-offs between runtime CSS-in-JS and plain CSS or CSS Modules in React, with working styled-components examples and its 2025 maintenance-mode status.
  7. JavaScript & webFade elements in on scroll with CSS transitions and react-intersection-observerUse the useInView hook from react-intersection-observer to add a CSS class when an element scrolls into view, and animate it with a CSS transition.
  8. JavaScript & webCSS animations in Vue 3: keyframes, class bindings and TransitionGroupAnimate Vue 3 components with CSS keyframes, toggle animations with class bindings, and animate list items with TransitionGroup and its CSS classes.
  9. JavaScript & webConverting React inline style objects to CSS classes with ChatGPTWhy moving React inline style objects into CSS classes helps, and how I used ChatGPT to turn a camelCase style object into a CSS rule.
  10. JavaScript & webPage transitions in Next.js: Motion in the Pages Router, ViewTransition in the App RouterFade between routes in Next.js with Motion's AnimatePresence in the Pages Router, or React's ViewTransition component in the App Router.
  11. JavaScript & webSVG wave hero section for an investing homepage with Vue and VuesaxGenerating SVG wave paths in a Vue component, and building an animated wave hero section for an investing blog homepage with Nuxt 2 and Vuesax.

© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)