I built this small project to experiment with the View Transitions API and query parameters. The goal was to create a smooth transition between a card list and a detail view using HTML, CSS, and JavaScript. During testing, I noticed that Chrome doesn’t render the transitions as smoothly yet, while Edge provides a noticeably smoother experience, making it a better option to preview this demo. Live demo: https://lnkd.in/e8jRGwGm #Frontend #JavaScript #CSS
More Relevant Posts
-
#Day 58/100 – Why JavaScript is Single-Threaded (and why that’s actually powerful) ⚡ When I first heard “JavaScript is single-threaded” I thought… Wait — only one thing at a time? Isn’t that slow? But today I understood something important. JavaScript being single-threaded is not a weakness. It’s the reason the web feels smooth. Imagine editing a form and suddenly the page freezes because 5 things run at once. That would be chaos. Instead, JavaScript follows a rule: Do one thing clearly, finish it, then move to the next. This makes UI predictable and prevents race conditions. But then how do videos load, APIs fetch data, and timers run? Because the browser handles heavy work in the background and JavaScript handles the result when it’s ready. So JS stays simple. The browser stays powerful. Big realization 💡 JavaScript isn’t trying to do everything at once — it’s trying to do everything in order. And that’s why websites don’t constantly break. Today I stopped thinking “single-threaded = limitation” Now I see “single-threaded = stability” #100DaysOfCode #JavaScript #WebDevelopment #LearningInPublic #FrontendDevelopment #CodingJourney
To view or add a comment, sign in
-
-
Parser-blocking JavaScript is often an overlooked issue in frontend performance. When the browser encounters a synchronous <script> tag: • HTML parsing pauses • DOM construction stops • Script executes • Rendering is delayed This issue can easily be missed, but it is measurable in DevTools. I conducted an experiment, recorded the Performance trace, and documented how using defer alters the entire timeline. The difference is immediate and visible. #WebPerformance #JavaScript #FrontendDevelopment #HTML
To view or add a comment, sign in
-
Imagine the below piece of JS code, what will the user experience? Hint: Answer lies in the understanding of the Event loop. #javascript
To view or add a comment, sign in
-
-
When working with arrays in JavaScript, these four methods come up all the time forEach, map, filter, and find. They look similar, but each has a very specific purpose 1. forEach() Used when you want to loop through an array and perform an action (like logging, updating UI). it does not return a new array. 2. map() Used when you want to transform data. Returns a new array with modified values. Perfect for formatting API data. 3. filter() Used when you want to select specific items based on a condition. Returns a new array with matched elements only. 4. find() Used when you want to get a single item that matches a condition. Returns the first matched element, not an array. #JavaScript #ES6 #WebDevelopment #FrontendDeveloper #ReactJS #LearningInPublic
To view or add a comment, sign in
-
Recently Built a Captcha Generator using HTML, CSS, and JavaScript check it out here:👉https://lnkd.in/g2eC-pyD It may look simple, but it covers: Random string generation User input validation Real-time feedback with UI effects DOM manipulation & Event handling Small projects like this really expose logic gaps and improve problem-solving. Thanks. #JavaScript #FrontendDevelopment #WebDev #PracticeProjects
To view or add a comment, sign in
-
Stop wasting time on boilerplate. 🚀 Every time I start a new project, I find myself doing the same dance: 1️⃣ Init Vite 2️⃣ Install Tailwind CSS 3️⃣ Configure PostCSS 4️⃣ Delete the "Hello World" boilerplate files I decided to automate it. Introducing @anburocky3/vite-tw — a lightning-fast CLI built with Bun and TypeScript to kickstart your workflow in seconds. Just run: npx @anburocky3/vite-tw It handles the configuration, cleans up the mess, and lets you get straight to the code. - No more manual setup, just pure productivity. Built with: ⚡ Bun for high-performance execution 🎨 Tailwind CSS for instant styling 🛠️ Vite for the best dev experience Give it a try and let me know what you think! NPM Package link: https://lnkd.in/gmSVhics Github Link: https://lnkd.in/ghpJ9f2M Medium Article: https://lnkd.in/gNtUrrwQ #WebDevelopment #BunJS #TailwindCSS #ViteJS #OpenSource #CyberDudeNetworks #JavaScript #TypeScript
To view or add a comment, sign in
-
-
Day 28 – Selecting Elements in JavaScript (DOM) 🧩 Today I learned how to select HTML elements using JavaScript in order to manipulate them through the DOM. Concepts covered: getElementById() – selecting elements by unique ID getElementsByClassName() – selecting elements by class getElementsByTagName() – selecting elements by tag name querySelector() – selecting the first matching CSS selector querySelectorAll() – selecting all matching CSS selectors Understanding element selection is a core step toward building interactive and dynamic web pages. Consistent progress, one day at a time 🚀 #Day28 #JavaScript #DOM #WebDevelopment #FrontendDevelopment #LearningJourney
To view or add a comment, sign in
-
-
Understanding event.preventDefault() is fundamental in JavaScript. By default: • Forms submit • Links navigate • Browser triggers built-in actions Using preventDefault(): • Stops the automatic behavior • Lets JavaScript handle the logic • Essential for modern SPAs • Prevents unnecessary page reloads If you're building React or any SPA, this concept is non-negotiable. Master browser behavior before mastering frameworks.
To view or add a comment, sign in
-
-
Hello everyone, I’d like to explain two JavaScript concepts—currying and closures—using the dynamic onChange handler in the code snippet below. Here’s a breakdown of how and why it works: 💡 The Concept: Instead of a standard function, we create a function that returns another function. 🧠 What is happening under the hood? 1. Currying (The Setup): We don't pass all arguments (field and e) at once. First, we call handleInputChange('email'). Result: This returns a new function that is sitting there, waiting specifically for the event e. 2. Closure (The Memory): Even after that first function finishes running, the returned function "remembers" the field variable ('email') because of closure. The Payoff: When React finally triggers the onChange event, our inner function executes with access to both the specific field name (saved from the closure) and the event (provided by React). One handler. Infinite inputs. Cleaner code. 🚀 Check out the implementation below. Have you used this pattern in your projects, or do you prefer a different approach? #JavaScript #ReactJS #WebDevelopment #CodingTips #CleanCode
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development