Quick Tip: Style Pseudo-elements with Javascript Using Custom Properties
Learn how to dynamically style CSS pseudo-elements like ::after using JavaScript and CSS custom properties (CSS variables).
Learn how to dynamically style CSS pseudo-elements like ::after using JavaScript and CSS custom properties (CSS variables).
A tutorial explaining the React useRef() hook, covering mutable values and DOM element access in three practical steps.
Explores function overloading in JavaScript libraries, using Bliss.js as an example to show how it improves API design and developer experience.
A proposal for a native browser feature to load and replace HTML content without JavaScript, enabling SPA-like experiences directly with HTML attributes.
An overview of essential client-side JavaScript browser APIs, including navigator, window, customElements, document, and localStorage.
A guide explaining the differences between React's useEffect and useLayoutEffect hooks and when to use each one.
A reference guide comparing jQuery and vanilla JavaScript for DOM manipulation, covering element selection, creation, and event handling.
Explains the core database-like join semantics (Update, Enter, Exit) in D3.js for binding data to DOM elements.
A developer creates a bookmarklet to bypass Instagram's login prompt and re-enable scrolling on the web version.
A tutorial on using JavaScript Proxy objects to enable jQuery-like method chaining for DOM element style manipulation.
A practical reference guide for developers transitioning from jQuery to modern vanilla JavaScript, covering common patterns and equivalents.
Introduces dom-chef, a library for building DOM elements using JSX syntax without React, highlighting its features and use cases.
Explains how and why to enhance HTML links into interactive buttons using JavaScript, with a practical login dialog example.
Explains the Virtual DOM concept, its differences from the original DOM, and why it's used for performance in modern web development.
A tutorial on using the Intersection Observer API in React to implement anchor-based navigation for long articles.
A tutorial on adding clickable anchor links to headings in a Jekyll blog using a simple JavaScript snippet.
A tutorial on creating a custom JavaScript function to generate DOM elements from scratch, explaining the core logic and usage.
A guide explaining when and how to properly use React's ref attribute to access DOM nodes, with examples and official use cases.
A JavaScript function to automatically add target="_blank" to all external links on a webpage, ensuring they open in new tabs.
A JavaScript challenge to recreate the drag-to-complete and drag-to-delete interactions of the Clear todo app using pure JS.