Add a slide-over quote panel to this website: the quote or contact form slides in from the right side, without leaving the page. Markup: one panel for the whole site, using a native <dialog> element, placed once in the footer template, holding my existing form, a heading and a close button. Any link to #quote (or with a data-quote attribute) anywhere on the site opens it. Behaviour: the panel slides in from the right (transform translateX, about 400ms with a soft ease) while the page behind dims with a backdrop. It closes with the close button, the Escape key or a click on the backdrop, and slides out the same way. Opening it moves focus to the first field, focus stays inside the panel, and closing returns focus to the button that opened it. The page behind does not scroll while it is open. After a successful submit, the form is replaced by a thank you message in the same panel. On mobile the panel takes the full width. If the page itself is a contact page, scroll to the inline form instead of opening the panel. Respect prefers-reduced-motion by fading instead of sliding. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
Live filter
Filter buttons above a list of posts or cards, and the list rearranges itself instantly with a smooth animation.
This is the real effect. Scroll or move your mouse inside the frame to try it.
Add a live filter to [the posts, products or cards I point to]: filter buttons above the list, and the list updates instantly with a smooth animation, without reloading the page. First ask me what should be filtered and by what (categories, tags, a custom field) if that is not clear from the page. Then add one button per option, plus All. Behaviour: buttons toggle on and off (aria-pressed); decide with me whether several can be on at the same time. Items that match stay; the others fade and shrink out, and the remaining items slide smoothly to their new place (use the FLIP technique: measure positions before and after, then animate the difference with transforms). Show a short line with the number of results, and a Clear button when a filter is active. Every item carries its filter keys in a data attribute, rendered from the real taxonomy or field of my CMS, so new items are filterable automatically. Accessibility: buttons are real buttons, the result count is in an aria-live region, hidden items are really hidden from screen readers after the animation. Respect prefers-reduced-motion by switching without the animation. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
What it is
A row of filter buttons above a list. Click one, and the matching items stay while the rest moves out of the way, right there on the page.
When it works
Blogs, portfolios, products, team pages. Anything with more than a handful of items. On the Living with Prompts blog and homepage the cards filter like this. You can even write the filter options as problems your customer recognises, instead of category names.
Get it right
- Build the filter options from your real categories, so new items are filterable automatically.
- Decide if visitors can pick one option or several.
- Animate the cards to their new place, so people see what happened instead of a sudden jump.
Also called
- Filter buttons
- Category filter
- Animated filter
- Filter chips
- Isotope filter
More effects.
All effects- InteractivePrompt
- InteractivePrompt
Add an auto-hide behaviour to the header of this website (a smart header that hides when you scroll down and comes back when you scroll up, also called a headroom header). Behaviour, two separate states: 1. Tint: once the page has scrolled more than about 40px, give the header a background, so the content scrolling underneath does not show through. Remove it again at the top. 2. Direction: when the visitor scrolls down more than a small threshold (about 10px of travel), slide the header up out of view with transform: translateY(-100%). As soon as they scroll up, slide it back in. Never hide it in the first 100px of the page or while the mobile menu is open, and show it again when an element inside it gets keyboard focus. Use a passive scroll listener with requestAnimationFrame and a 300ms ease transition. If there is a WordPress admin bar, offset the header with top: var(--wp-admin--admin-bar--height, 0px). Respect prefers-reduced-motion by removing the slide transition. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
- InteractivePrompt
Turn [the form I point to] into a multi-step form (the questions split into short steps with a progress bar, also called a form wizard). Steps: group the existing fields into logical steps, easiest questions first and contact details last. Turn single-choice questions into selectable tiles instead of dropdowns, and number ranges into a range slider that shows the value live. Show a summary of the choices before the final submit. Behaviour: one step visible at a time. Next slides the next step in from the right, Back slides back from the left (about 300ms). A progress bar and step labels at the top fill up as you go. Each step validates before you can continue, with a friendly message next to the field. Choosing a tile on a single-choice step moves on by itself after a short moment. Everything stays one real form element, so it also works without JavaScript (all steps visible), and the data is submitted in one go to my form plugin. Accessibility: the active step gets focus on its heading, the progress is announced (for example Step 2 of 4), tiles are real radio inputs, everything works with the keyboard. Respect prefers-reduced-motion by switching steps without sliding. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.