CSS
12 min
CSS position: sticky — How It Really Works
You add position: sticky; top: 0 to a header and nothing happens. No error — it just silently refuses to stick. This guide explains how sticky really works, the three traps that break it, and the patterns for headers, sidebars, and table headers.
JavaScript
14 min
OpenAI Function Calling in JavaScript (Vanilla JS Guide)
Function calling lets the AI decide when to invoke your own JavaScript functions and what arguments to pass. The result: AI that fetches real data, runs calculations, searches your database, and controls your UI — all driven by natural language.
CSS
10 min
CSS z-index & Stacking Contexts Explained
You set z-index: 9999 on a tooltip. It still hides behind a modal. Until you understand stacking contexts, you're just guessing. This guide explains exactly how z-index works, what traps it, and how to fix every layering bug you'll ever face.
JavaScript
14 min
Run AI Locally with Ollama and JavaScript
Ollama lets you run powerful AI models like Llama 3, Mistral, and Gemma entirely on your own machine — free forever, no API key, zero data sent to the cloud. This tutorial shows you how to call Ollama from JavaScript with the same fetch pattern you already know.
CSS
12 min
CSS Container Queries: Components That Respond to Their Parent
Media queries respond to the viewport. Container queries respond to the parent element. This single difference unlocks truly reusable components that adapt to wherever they are placed — sidebars, grids, modals, anywhere.
CSS
11 min
CSS View Transitions API: Animate Pages Without Libraries
The View Transitions API lets you animate between any two DOM states with a single JavaScript call and pure CSS. No animation library needed — the browser handles the cross-fade, morphing, and timing automatically.
JavaScript
15 min
Build a Chatbot Widget with HTML, CSS & JavaScript
Build a floating chat bubble widget that opens into a full AI chat panel — pure HTML, CSS, and Vanilla JavaScript. Connects to OpenAI, streams responses, remembers conversation history, and embeds into any website with a single script tag.
JavaScript
17 min
Build an AI Color Palette Generator with JavaScript
Build a real working tool: type a mood or theme, and AI generates a five-color palette with names and use cases. Pure HTML, CSS, and Vanilla JavaScript — no frameworks, no build step, ships in one file.
JavaScript
13 min
Web Speech API: Build a Voice Command UI in JavaScript
The Web Speech API lets you add voice input and text-to-speech to any website with zero dependencies. This tutorial builds a fully working voice command UI — wake word detection, command matching, and spoken responses — in pure JavaScript.
CSS
13 min
CSS Skeleton Loading Screens with Shimmer Animation
Skeleton screens replace blank white flashes and spinning loaders with intelligent content placeholders. Here is how to build them with pure CSS — including shimmer animation, dark mode, and AI chat loading states.
JavaScript
14 min
Build a ChatGPT-Style Streaming Text Effect in JavaScript
The token-by-token streaming animation you see on ChatGPT, Claude, and Gemini is now everywhere. Here is how to build it yourself using pure JavaScript — covering CSS typewriter, ReadableStream, and real Server-Sent Events.
JavaScript
13 min
Call the OpenAI API from Vanilla JavaScript (No Backend)
You do not need Node.js, React, or a backend server to start using the OpenAI API. This tutorial shows you how to call GPT models directly from plain JavaScript using the Fetch API — with streaming, error handling, and secure key management.