r/Frontend • u/bogdanelcs • 23h ago
CSS timeline-scope: One Scroll, Multiple Carousels
r/Frontend • u/bogdanelcs • 23h ago
r/Frontend • u/dexters822 • 1d ago
I’m UIUX designer with 5 years of experience currently want to expand my skillset for that want to learn front-end engineering. I did purchased few courses but want to know from industry people how do I approach learning this, and also if there’s any insights about this role and what really expected in the industry would be appreciated ✌️
r/Frontend • u/Turbulent_Rooster_73 • 22h ago
I'm one of the people behind wf (Wireframes), an open-source CLI (MIT) that turns YAML into clickable greyscale HTML wireframes for web, iOS and Android. A person or an agent writes the YAML, wf renders it. This post is about one part of it: the two render modes.
A page picks its mode with one key:
page:
id: settings
renderMode: line # card is the default
Images: the first one is an AI-generated header, not a screenshot. The other two are real wf screenshots output of two page files that are identical apart from that one line (I diffed them).
What changes between the modes
What doesn't change
The element tree, the layout and the sizes. And both modes are greyscale: hue only shows up for severity (the danger button in the screenshots, invalid fields, alerts, badges). There's a test that fails if one of the severity colours leaks into any other selector.
One CSS detail I like
Only nodes the renderer marks data-wf-frame="surface" draw a box at all. In card mode that box is a border plus a shadow. In line mode it's an outline with outline-offset: -1px, so the stroke sits inside the box and switching modes doesn't change any element's size or move anything. Layout is identical, only the paint differs.
Try it
It's not on npm yet, so it runs from a checkout:
&&
&&
Then open build/web/index.html. wf catalogue --mode line renders the whole element catalogue in either mode if you want to compare all elements side by side. Spec for the modes: docs/cli/rendering-modes.md.
Repo: https://github.com/UnlikeOtherAI/wireframes
What I'd like feedback on
r/Frontend • u/Lonely_Heron7804 • 3d ago
I've been coming across some absolutely crazy websites with smooth scroll animations, interactive 3D environments, cinematic transitions and creative micro-interactions, especially on Awwwards.
I'm currently learning web development, and I'm really curious about how developers actually build these experiences from scratch.
For those of you who develop such websites:
What technologies and libraries do you mainly use?
How did you learn to create such complex animations?
Do you design the entire experience beforehand or experiment while coding?
How do you achieve smooth animations without sacrificing performance?
Are there any underrated resources, courses or YouTube channels that helped you?
I'm particularly interested in Three.js, GSAP, interactive 3D environments and creative web development in general.
I'd love to see some websites you've personally built and hear about the process behind them, even if they're experimental projects.
My goal isn't just to replicate cool animations but to actually understand how they work and eventually create something original.
Would really appreciate any insights!
Edit: Why ya'll downvoting me, am i doing something wrong I'm learning something from you guys, if I'm doing something wrong please point it out I would be glad to rectify it..
r/Frontend • u/Less-Marsupial-7960 • 5d ago
I've been experimenting with CSS Container Queries, especially for components that appear in different layouts.
One thing I like is that a card can adapt to the space available to it rather than the entire viewport.
For example:
.card-wrapper {
container-type: inline-size;
}
.card {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
u/container (min-width: 500px) {
.card {
grid-template-columns: 140px 1fr;
}
}This makes the component more independent of the page layout.
But I'm curious about real-world usage:
I'd be interested in hearing how people are using them in larger component-based projects.
r/Frontend • u/Creative-Maybe-2667 • 5d ago
I have 5.4 yrs of exp in front end technologies , but for this 5+ years , i have been trying to update myself but I didnt , i have joined paid course but nothing worked out , I thought I lack consistency now I realized Im not enjoying learning this Front end . Im
Not enjoying frontend thats the reason . I have been forcing myself to do it . So now I planned to change my domain to Data Analyst I dont know how it will be . may I know the suggestions please?
r/Frontend • u/Both-Tart7460 • 6d ago
Hey everyone! A few weeks ago I shared a post here about how UTF-16 surrogate pairs and historical Unicode holes break naive math-offset text converters. A bunch of you gave super helpful feedback on Safari clipboard edge cases, which pushed me to clean up the CSS architecture of my little side project (100emoji.shop — single static HTML file, no bundler/minifier so view-source has the full readable code).
When building a live preview grid with 20+ text style cards and category filters, my initial instinct was the usual JS-heavy route: track filter/input state in JS, toggle .is-empty classes, listen to input/focus to collapse the header on mobile, and add viewport breakpoints so wide glyphs don't overflow.
While refactoring to keep the whole app under 10KB gzipped, I realized modern CSS can handle almost all of that UI state declaratively on the compositor/layout thread with zero JS listeners. Here are the 3 patterns that replaced ~200 lines of glue code for me:
:has()Previously, every time a filter or search ran, JS had to count visible cards and toggle an empty-state element:
// Old imperative glue
With :has(), the grid container already knows whether any unhidden card exists:
}
/* Show empty state automatically whenever no visible card remains */
}
Now filtering logic only sets card.hidden = !matches and walks away. No state sync bugs, no extra DOM queries.
On mobile screens, once someone taps the text input or starts typing, a tall hero banner wastes half the viewport above the virtual keyboard. Instead of binding focus/input/scroll handlers to toggle classes on <body>, :has() handles both focus and non-empty input natively:
}
}
Quick tip: make sure your <input id="user-input" placeholder=" "> has at least a non-empty placeholder string so :not(:placeholder-shown) reliably detects when text is present.
@container + cqi Instead of Viewport Media QueriesUnicode mathematical alphabets (like Double-Struck 𝕎𝕖𝕝𝕔𝕠𝕞𝕖 or Fraktur 𝔚𝔢𝔩𝔠𝔬𝔪𝔢) have much wider advance widths than normal Latin characters, so fixed rem sizes overflow narrow grid columns fast.
Instead of juggling @media queries for 1-col, 2-col, and 3-col viewports, turning each card into an inline-size query container let every card scale its own typography from its actual column width:
}
/* Font size scales smoothly with the card's own inline width */
}
@) }
}
:has() scoped to direct containers (.previews-grid:not(:has(...))) and specific IDs (#user-input) kept style recalculation under ~0.3ms in Chrome DevTools performance traces, even when typing fast on throttled CPU.:has() and @container inline-size queries have been baseline across Chrome, Edge, Firefox, and Safari for a good while now, so for modern utility tools we didn't need a JS fallback.Curious if anyone else here has been ripping out small UI state listeners in favor of :has() / container queries lately, or if you've hit selector performance gotchas on much larger DOM trees? Happy to share more details if anyone is curious!
r/Frontend • u/AngySadCat • 6d ago
Hi, I run a website through blogger and I'm highly fluent in HTML5. Slowly learning CSS3. I do use JS6 but I don't write any of the boiler plate as it's still too advanced for me. I was wondering if you guys have suggestions to help me learn CSS3 and JS6 syntax? I struggle with rote memorization, but if I can tie a syntax line to a visual output I find that I remember it easier. Still working on learning the jargon. Also if you have the time I would love suggestions to further improve my live code. I've been doing front end coding for roughly 1 year and 2 months.
KittyPaine/pstrophyguides.blogspot.com: A centralized collection of interactive video game trophy guides and walkthrough assets, tracking the evolution of custom HTML5, CSS3, and DOM-based templates designed to optimize usability, searchability, and performance for gamers.
r/Frontend • u/JadeLuxe • 6d ago
r/Frontend • u/design-for-good • 6d ago
I've been asked by my peers to begin using a design md file but I was thinking that lack of structure would make it difficult to maintain. The benefits is that our codebase can begin using our design tokens but we would lack the structure of a .json file or something else I could easily parse.
I'm curious what others are doing and if anyone has had any success convincing their teams to use design tokens files as opposed to a markdown file to capture these types of style variables.
Also, is it common to use a design system across projects still or is it easier to get by without them now?
r/Frontend • u/Active_Ad1239 • 8d ago
Hi everyone,
I recently applied for a Frontend Engineer position at EPAM and have an upcoming JavaScript technical interview.
Has anyone recently gone through the technical interview process at EPAM, particularly for a Frontend Engineer or Senior Frontend Engineer position?
I would really appreciate some guidance on the following:
I applied for a position in the UAE, but interview experiences from other locations would also be helpful.
If anyone has recently interviewed at EPAM, I would really appreciate it if you could share your experience.
Thank you in advance!
r/Frontend • u/Less-Marsupial-7960 • 8d ago
I was working through a common frontend scenario: a product listing page with search, category filters and sorting.
There are two approaches I've used:
1. Keep everything in component state
const [category, setCategory] = useState("all");
const [sort, setSort] = useState("newest");2. Store shareable filters in the URL
const params = new URLSearchParams(window.location.search);
const category = params.get("category") || "all";
const sort = params.get("sort") || "newest";The URL approach has some useful advantages:
But it also means keeping the URL and UI state in sync, which can introduce extra complexity.
I'm curious how others handle this in production.
Do you generally keep filters in component state, sync them with URL parameters, or use a dedicated state-management solution?
Where do you draw the line?
r/Frontend • u/fagnerbrack • 9d ago
r/Frontend • u/GlesCorpint • 9d ago
r/Frontend • u/JadeLuxe • 10d ago
r/Frontend • u/PhDumb • 10d ago
JEV is an ultra-fast classifier from TypeSafe, that answers multiple-choice questions, and I use it to arrange the pre-defined UI elements into a webpage based on the user's prompt. For example, for the prompt e.g. "Frontend for login form" JEV would return something like the following:
"surface": { "type": "choice", "choice": "app-login", "confidence": 1,
"probabilities": { "app-login": 1, "app-signup": 0, "website": 0, "app-checkout": 0, … all 14 etc... etc... } }
And here the "app-login" is a ready-made UI element but one can modify it later in the app manually. So this is what gets inserted into resulting HTML, among other things.
Besides JEV there are many other elements you can play manually with e.g. replace and resize images, add and link pages etc.
Repo: https://github.com/GPTchatly/Forma
Free (with limits) hosted Forma Editor
Many of the UI elements are by Markmead's Hyperui, and Cole Bemis' Feather icons; Fancy Components (by Daniel Petho); Velora UI (Aigars Silkalns); Cult UI (Nolly Studio)
r/Frontend • u/JadeLuxe • 11d ago
r/Frontend • u/sonthonaxrk • 13d ago
I didn’t realise this was possible. Christ webassembly allows for some useful things.
r/Frontend • u/LinterCheck2026 • 13d ago
QA lead at a large org. We currently do accessibility testing for about 500 website urls to meet WCAG 2.2 AA (all 55 success criteria). And we use a paid tool (like Deque) that helps automate part of this and rest done manually with screen readers and keyboard testing.
Now we are looking to use our AI budget and Claude code to create skills for finding and fixing accessibility issues across our sites. My major trouble is that the scale is huge - not 5-10 URLs or even less than 50.
So would love to hear from anyone already using AI for accessibility to help me out with this journey:
r/Frontend • u/Putrid_Draft378 • 13d ago
I got curious about why TikTok's desktop web client feels so sluggish on initial load, so I ran a Chrome DevTools Lighthouse audit (v13.5.0) on tiktok.com to see what the frontend bundle and rendering pipeline actually look like.
The overall scores came back at 34 for Performance, 73 for Accessibility, 54 for Best Practices, and 77 for SEO.
On the Core Web Vitals and rendering side, First Contentful Paint takes 8.0s, Largest Contentful Paint hits 14.9s, Time to Interactive reaches 20.5s, and Total Blocking Time is 1,090 ms. Out of 8.5s of main-thread work, 5.1s goes purely to parsing and evaluating JavaScript. Almost all of that CPU time is spent on cache.react_dom (around 2.5s) and their anti-bot telemetry script webmssdk.js (around 1.8s).
The initial payload is 4,475 KiB, and there are a lot of classic frontend optimization misses in the build. It ships 236 KiB of unused JS on initial load (their regional cookie consent script alone has ~90 KiB of dead code), 26 KiB of unused CSS, and 65 KiB of legacy Babel transforms and polyfills for Baseline features like Array.prototype.includes, Promise.allSettled, and standard classes. Their security SDK (secsdk-lastest.umd.js) is also served unminified, the 400x400 PNG logo is scaled down to 112x112 via CSS, and the custom woff2 fonts are missing font-display rules.
Two other frontend details stood out. First, their privacy loader triggers repeated Permissions-Policy console errors by attaching unload listeners, which alongside Cache-Control: no-store completely breaks Back/Forward Cache restoration. Second, basic markup accessibility is rough: several header icon buttons and the search link have no aria-labels, four text inputs lack associated labels, and white text on their #fe2c55 buttons only hits a 3.68:1 contrast ratio.
I get that they prioritize their mobile apps, so desktop web is clearly an afterthought, but it is still wild seeing a major production React app ship unminified scripts and ES5 polyfills in 2026. Have any of you run into similar bottlenecks trying to keep Core Web Vitals green when security or product teams mandate heavy fingerprinting SDKs on initial load?
r/Frontend • u/Less-Marsupial-7960 • 15d ago
if (!response.ok) {
throw new Error("Request failed");
}
const data = await response.json();
setResults(data);
} catch (error) {
if (error.name !== "AbortError") {
console.error(error);
}
}
}
if (query.trim()) {
search();
}
return () => controller.abort();
}, [query]);I'm curious how other developers handle this in production.
Interested in hearing what patterns have worked well in real projects.