🚀 Leveling up my Frontend Game! 🕹️ I spent my day building a Neon-Themed Tic-Tac-Toe from scratch! 💻 It’s not just a game; it was a deep dive into DOM manipulation and win-logic. What I learned: State Management: Handling "X" vs "O" turns without bugs. Win Logic: Implementing the 8 winning combinations (rows, columns, diagonals). UI/UX: Using CSS pseudo-elements (::before/::after) to create those glowing neon symbols. The "Aha!" moment: Getting the draw logic to trigger perfectly only when all cells are filled and no winner is found. Check out the clean layout! It’s all built with HTML5, CSS Grid, and Vanilla JavaScript. What was your first JS project? Let's chat in the comments! 👇 #WebDevelopment #JavaScript #CodingJourney #Frontend #BuildingInPublic
More Relevant Posts
-
A small React fun fact that changes how you think about performance: It’s not the DOM update that hurts the most. It’s what the browser does after it. When you change something in the DOM, the browser may: → recalculate layout (where everything sits) → repaint pixels on the screen And that can be more expensive than the JavaScript itself. Which means: You can have perfectly optimized React code… and still ship a slow UI. Example: Changing width, height, top, left → triggers layout Changing transform, opacity → usually avoids it That is why animations using transform feel smoother. React optimizes rendering. But the browser decides the real cost. Understanding this is where frontend becomes engineering, not just coding. #Frontend #React #Performance #WebDevelopment #JavaScript
To view or add a comment, sign in
-
🚀 Mini Project of the Day: Password Strength Checker First, I show how it works: • Checks password strength • Animated strength bar • Show / Hide password button Then, you can see the code being written in **30x speed** (HTML + CSS + JS). Goal: to improve my frontend skills and create clean, interactive UI components. #frontend #javascript #webdevelopment #vuejs #coding #juniordeveloper #uiux #learntocode #portfolio
To view or add a comment, sign in
-
𝐓𝐡𝐢𝐧𝐤 𝐮𝐬𝐞𝐑𝐞𝐟 𝐢𝐬 𝐣𝐮𝐬𝐭 𝐟𝐨𝐫 𝐃𝐎𝐌 𝐞𝐥𝐞𝐦𝐞𝐧𝐭𝐬? 𝐘𝐨𝐮'𝐫𝐞 𝐦𝐢𝐬𝐬𝐢𝐧𝐠 𝐨𝐮𝐭 𝐨𝐧 𝐨𝐧𝐞 𝐨𝐟 𝐑𝐞𝐚𝐜𝐭'𝐬 𝐬𝐭𝐞𝐚𝐥𝐭𝐡𝐢𝐞𝐬𝐭 𝐩𝐨𝐰𝐞𝐫-𝐮𝐩𝐬. Many of us reach for `useRef` when we need a direct handle to a DOM node. But its real magic often goes overlooked: holding mutable values that don't trigger a re-render. Imagine you need to count how many times a component renders, or perhaps store a previous prop value without causing an infinite loop. `useState` would trigger re-renders, potentially creating a mess. `useRef` steps in. ```javascript import React, { useRef, useEffect } from 'react'; function MyComponent({ propValue }) { const renderCount = useRef(0); const prevPropValue = useRef(propValue); // Store previous prop // Increment render count on every render renderCount.current++; console.log('Component rendered:', renderCount.current, 'times'); useEffect(() => { // This runs when propValue changes. // prevPropValue.current holds the *old* value for comparison. console.log('Prop changed from', prevPropValue.current, 'to', propValue); prevPropValue.current = propValue; // Update for the *next* render }, [propValue]); return ( <div> <p>Current prop value: {propValue}</p> <p>Component has rendered {renderCount.current} times.</p> </div> ); } ``` By using `useRef`, you get a stable object that persists across renders. Critically, changing `ref.current` doesn't queue a re-render, making it perfect for values you want to manage internally without affecting the UI's render cycle. It's like having a private instance variable for your function component. 💡 Pro Tip: This is incredibly useful for things like storing timer IDs, animation instances, or anything where you need to manage a mutable piece of data that doesn't directly drive your component's visual state. How have you leveraged `useRef` beyond the typical DOM element scenario? Share your clever uses! #ReactJS #FrontendDevelopment #JavaScript #ReactHooks #WebDevelopment
To view or add a comment, sign in
-
Hey Everyone!! #Day25 of #30DaysCodingChallenge Today I built a Number Guessing Game Web Application using HTML, CSS, and JavaScript. What I Built An interactive game where users guess a number between 1 and 10. The application provides feedback on whether the guess is too high, too low, or correct, and tracks the number of attempts and the high score. Purpose of the Project The goal was to improve my understanding of JavaScript logic, DOM manipulation, and localStorage while creating a fun and engaging game. Key Features ✔ Input validation for guesses. ✔ Real-time feedback: “Too High”, “Too Low”, or “Correct! ”. ✔ Counts the number of attempts. ✔ Stores and displays the high score using Local Storage. ✔ Reset button to start a new game instantly. ✔ Clean and centered UI with intuitive design. What I Learned 🔹 How to generate random numbers with Math.random(). 🔹 How to handle user input and provide dynamic feedback. 🔹 How to track attempts and implement high score logic. 🔹 How to persist data with localStorage. 🔹 How to structure a small game logically and efficiently. Creating small games like this is helping me practice JavaScript fundamentals while building something enjoyable and interactive. #JavaScript #WebDevelopment #FrontendDeveloper #HTML #CSS #CodingChallenge #BuildInPublic
To view or add a comment, sign in
-
I recently recreated a scroll-based shader transition inspired by an Awwwards website. In the tutorial I used Three.js, GLSL shaders, GSAP ScrollTrigger, and Lenis smooth scroll to build the effect from scratch. If you're interested in creative frontend development, WebGL, or building Immersive websites, you might find this helpful. Watch the full tutorial here: https://lnkd.in/g2bMkKXG #threejs #webgl #frontenddevelopment #creativecoding #javascript #webanimation #gsap #shader
To view or add a comment, sign in
-
Logic in the making. 🚀 Currently working on an interactive homepage section using dynamic display toggles. Transitioning between views (like moving from 'Sunrise Avenue' to the 'Flat List' page) is a simple concept that requires precise execution. Loving the process of turning lines of code into a functional user experience! 🛠️ #FrontEnd #JavaScript #CodingAssignment #TechCommunity #BuildInPublic
To view or add a comment, sign in
-
🚀 Just Built a Tic-Tac-Toe Web Game! I recently created a classic Tic-Tac-Toe game using HTML, CSS, and JavaScript. This project helped me practice JavaScript logic, DOM manipulation, and responsive UI design. ✨ Features: • Two-player mode (X vs O) • Win detection (horizontal, vertical, diagonal) • Score tracking system • Reset game & reset score options • Responsive and clean UI 🎥 Demo Video: 🌐 Live Demo: https://lnkd.in/dXQ7gyEK Building small projects like this is a great way to strengthen problem-solving and frontend development skills. #WebDevelopment #JavaScript #FrontendDeveloper #HTML #CSS #CodingProjects
To view or add a comment, sign in
-
🚀 Excited to share my new project – **Numbering Game** 🎮 I’ve built a simple and interactive game using web technologies. This project helped me improve my skills in logic building and frontend development. 🔗 Live Demo: https://lnkd.in/gWRrsu9A 💡 Features: * User-friendly interface * Fun number-based logic game * Responsive design 🛠️ Technologies Used: * HTML * CSS * JavaScript I’m continuously learning and building projects to improve my development skills. Feedback and suggestions are welcome! 😊 #WebDevelopment #JavaScript #Frontend #Projects #Learning #GitHub
To view or add a comment, sign in
-
📑 Next.js Hydration Process: Turning Fast SSR Pages into Fully Interactive Experiences Server-side rendering (SSR) makes your page visible fast, but it’s not interactive yet. That’s where hydration steps in. After the server sends HTML, the JavaScript bundle executes, React attaches event handlers, and components are linked to the HTML. React also performs reconciliation, ensuring the client and server outputs match. Once hydrated, your page is fully interactive — buttons click, forms submit, and any updates re-render components client-side. 💡 Next.js combines server- and client-side rendering, giving users both speed and interactivity. Think of SSR as the first layer of paint, and hydration as the finishing touches that bring it to life. #NextJS #ReactJS #WebDevelopment #FrontendDevelopment #Hydration #JavaScript
To view or add a comment, sign in
-
-
🎲 Just Built a Dice Roll Game using HTML, CSS & JavaScript! 🌐 Live Demo: [https://lnkd.in/g6PtRh2P] 💻 GitHub Repository: [https://lnkd.in/gRDY-dE3] Excited to share my latest mini project — a Dice Roll Game that I built from scratch using core web technologies. This project helped me strengthen my understanding of DOM manipulation, event handling, and basic game logic. 🚀 Features: • Random dice generation on each roll • Dynamic UI updates using JavaScript • Clean and responsive design with CSS • Simple and interactive gameplay 💡 What I learned: Working on this project improved my problem-solving skills and gave me hands-on experience in connecting JavaScript logic with UI elements. It also reinforced how powerful vanilla JavaScript can be when building interactive applications. Feel free to check it out and share your feedback! #JavaScript #WebDevelopment #FrontendDevelopment #HTML #CSS #JS #Projects ❤️
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