Built a fully interactive JavaScript Calculator with custom animations & DOM control Just wrapped up a frontend project where I pushed beyond basic functionality and focused on interaction, performance, and visual feedback. This wasn’t just about “does it calculate?” — it was about how it feels to use. 🧠 What I used under the hood: ⚡ querySelectorAll() to efficiently target and control multiple button elements at once 🎯 Clean DOM manipulation for handling inputs, operators, and live display updates 🎬 CSS @keyframes + animation timing to give button clicks smooth visual feedback ✨ Transition + animation layering to make interactions feel responsive and modern ⚙️ Event-driven logic using addEventListener to handle user input cleanly 🧩 Conditional logic for operator handling and edge cases ⚠️ I also experimented with dynamic expression evaluation using eval() for quick parsing — not production-safe, but useful for understanding how expression engines work under the hood before moving to safer parsing methods. 💡 Key takeaway: A calculator is simple on the surface, but once you start adding animation, state handling, and DOM optimization, it becomes a great exercise in how real frontend systems behave. Next step: replacing eval with a proper expression parser and improving state management. 🔗 Live project: https://lnkd.in/dyxdpW9K� #JavaScript #FrontendDevelopment #WebDevelopment #CSSAnimations #DOMManipulation #HTMLCSSJS #CodingProjects #WebAnimation #LearnToCode
Interactive JavaScript Calculator with Custom Animations and DOM Control
More Relevant Posts
-
Many developers still rely on custom CSS variables or even JavaScript to define scroll-driven animations, creating unnecessary complexity and brittle codebases. This often leads to animations that are hard to debug, poorly performant, and challenging to synchronize across different scroll containers. Historically, achieving robust scroll-driven effects meant juggling Intersection Observer APIs or custom scroll event listeners, then manipulating CSS properties with JavaScript. Even with early CSS `animation-timeline` drafts, developers had to declare a custom timeline name using `--scroll-timeline` (as seen in the old method example), which added an extra, often redundant, step. Ignoring the native `view()` timeline means your animations remain less declarative and potentially less optimized by the browser. You lose out on the built-in efficiency and simplicity of the platform's dedicated solution, leading to more code, more bugs, and a slower development experience. Are you still defining custom timelines for scroll-driven animations? #css #webdev #frontend #animation #scrollanimation
To view or add a comment, sign in
-
-
Stop using JavaScript for staggered animations. New CSS functions handle the logic for you. 1. Two new CSS functions CSS now includes two tools to manage lists of elements: - sibling-index: it tells an element its exact position in a list. - sibling-count: it tells an element the total number of items in that list. 2. Automatic calculations In the past, we used JavaScript to give a number to every element. This process was slow and difficult to maintain. Now, the browser calculates these values automatically. You do not need to update your code if you add or remove items. 3. A practical example I made a demo with 200 dots in a spiral. Each dot uses its index to calculate its position and its delay. The project uses native math functions like sine and square root. 4. Main benefits - The code is much shorter. - There is no JavaScript for the animation logic. - The style is clean and easy to update. Want the demo? Let's have a look to https://lnkd.in/eWqKDxZQ
To view or add a comment, sign in
-
✨ Rotating Glow Border Effect — Advanced CSS Only (No JavaScript) Built a hover-based glowing rotating border effect that creates a subtle 3D illusion using purely advanced CSS. No JavaScript. No DOM manipulation. Just deep control over CSS animations, pseudo-elements, and layering. On hover: • The border animates into a rotating glowing line • A 3D-like depth illusion enhances the card • Smooth transitions create a premium UI feel • Text and border glow dynamically without breaking layout This project was all about mastering: • CSS keyframe animations • Transform & rotation techniques • Gradient borders & masking tricks • Pseudo-elements (::before / ::after) for layered effects • Precise timing & performance-friendly animation It’s fascinating how powerful CSS alone can be when used creatively. Frontend isn’t always about logic — sometimes it’s about pushing design boundaries with pure styling. Mentor: Sheryians Coding School | Sarthak Sharma | Harsh Vandana Sharma | Ankur Prajapati 🧠 Tech Stack: HTML | Advanced CSS | SCSS #FrontendDevelopment #CSS #AdvancedCSS #CSSAnimation #WebDesign #UIEffects #NoJavaScript #BuildInPublic #DeveloperJourney #CreativeCoding
To view or add a comment, sign in
-
Building a custom header that feels "native" in React Native is notoriously difficult. You either stick with the rigid defaults provided by navigation libraries, or you build a custom component and spend days fighting to get the scroll sync and screen transitions to look fluid. It’s a classic trade-off between stability and customisation that often leads to janky animations. 𝗿𝗲𝗮𝗰𝘁-𝗻𝗮𝘁𝗶𝘃𝗲-𝗵𝗲𝗮𝗱𝗲𝗿-𝗺𝗼𝘁𝗶𝗼𝗻 just hit 𝘃𝟭.𝟬.𝟬, and it’s a complete shift in how we handle these complex UI patterns. Instead of fighting against the navigation stack, it introduces a way to bridge the gap between your content and the header area with precision. 𝗪𝗵𝗮𝘁’𝘀 𝗻𝗲𝘄 𝗶𝗻 𝘁𝗵𝗶𝘀 𝗿𝗲𝗹𝗲𝗮𝘀𝗲? ➡️ 𝗖𝗼𝗻𝘁𝗲𝘅𝘁-𝗙𝗶𝗿𝘀𝘁 𝗛𝗲𝗮𝗱𝗲𝗿 𝗔𝗣𝗜 — A redesigned architecture that uses React context to manage header state. This makes it much easier to update header elements based on what’s happening deep inside your screen's component tree without messy prop drilling. ➡️ 𝗘𝘅𝗽𝗹𝗶𝗰𝗶𝘁 𝗡𝗮𝘃𝗶𝗴𝗮𝘁𝗶𝗼𝗻 𝗕𝗿𝗶𝗱𝗴𝗶𝗻𝗴 — The library now explicitly bridges with the navigation state, ensuring that as you swipe between screens, the header transitions are perfectly synchronised with the native navigation animation. ➡️ 𝗕𝗲𝘁𝘁𝗲𝗿 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 — Significant internal refactors have reduced the overhead of tracking scroll positions and state changes, delivering much smoother motion even in complex layouts. 𝗪𝗵𝘆 𝗶𝘁 𝗺𝗮𝘁𝘁𝗲𝗿𝘀? For a long time, achieving that polished "Apple-style" large header that morphs and moves was reserved for apps with massive engineering teams. With the 𝘃𝟭.𝟬 milestone, 𝗿𝗲𝗮𝗰𝘁-𝗻𝗮𝘁𝗶𝘃𝗲-𝗵𝗲𝗮𝗱𝗲𝗿-𝗺𝗼𝘁𝗶𝗼𝗻 makes these high-end interactions accessible to everyone, providing a stable, performant foundation for design systems that need to stand out. #ReactNative #MobileDev #UIUX #OpenSource #JavaScript #TypeScript #Animations #Navigation #HeaderMotion #SoftwareEngineering #DevTools #MobileAppDev
To view or add a comment, sign in
-
-
Maximum effort? More like maximum timepass. I kept seeing this viral Deadpool website concept floating around Pinterest and finally decided to turn the static design into real code. I built this purely for fun over a casual coding session to stretch my UI and animation muscles. Translating the bold typography, the character layering, and the dark theme into the browser was a great mini-challenge. The tech stack: - React - Framer Motion (for the smooth, dynamic animations) Sometimes, as developers, we need to take a step back from serious architecture and just build things because they look cool. Check out the live deployment here (preffered dekstop view for better visual experience) : https://lnkd.in/dWdwYfRU #ReactJS #FramerMotion #FrontendDev #WebDesign #UIUX #JavaScript #WebAnimations #CreativeCoding #FrontendDeveloper #WebDevelopment
To view or add a comment, sign in
-
Frontend developers — this will save you hours 👇 CSS animations don’t have to be janky. The translate property lets you move elements in 2D or 3D space without breaking layout—and it’s GPU‑friendly, so animations stay smooth 🚀 Many developers either: ❌ Skip it ❌ Or misuse it So I put together a simple visual cheat sheet explaining: 📌 What translate actually does 📌 Why it outperforms positioning & margins 📌 Pure CSS vs Bootstrap vs Tailwind usage 📌 A pro centering trick you’ll reuse everywhere Perfect for: ✅ Hover effects ✅ Modals & drawers ✅ Sliders & carousels ✅ Parallax-style UI motion 💾 Save this for later—you’ll thank yourself. #CSS #FrontendDevelopment #WebDevelopment #UILibraries #TailwindCSS #Bootstrap #CodingTips #LearnInPublic
To view or add a comment, sign in
-
-
CSS scroll-driven animations are here, and they are better than you think. For years, scroll effects meant wiring up JavaScript event listeners or wrestling with IntersectionObserver. Not anymore. Two new CSS properties change everything: animation-timeline -> tells the browser what to track (a scroll container or an element's position in the viewport) animation-range -> controls which part of the scroll journey triggers the animation Your existing keyframes stay exactly the same. You are just swapping the time axis for a scroll axis. Here is a reading progress bar in pure CSS: .progress-bar { width: 0%; height: 3px; animation: grow linear; animation-timeline: scroll(root); animation-range: 0% 100%; } @keyframes grow { from { width: 0% } to { width: 100% } } And here is a scroll reveal effect that fires as each element enters the viewport: .card { opacity: 0; transform: translateY(20px); animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; } @keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } No JavaScript. No event listeners. No library. Just CSS. One thing worth noting: Chrome and Edge have had full support since version 115, Safari since version 18. Firefox support is still on its way, so wrapping your animations in an @supports block is good practice to make sure all users see your content properly. If you have not explored this yet, it is one of the most satisfying things you can drop into a project right now. The gap between what used to require JavaScript and what CSS handles natively keeps closing fast. I'm curious if you've done something cool with all the cool new stuff with CSS lately. If so, what is it? How has it improved your workflow or code base?
To view or add a comment, sign in
-
Just shipped ZenZone — an immersive frontend portfolio showcase I built to push my animation skills to the limit. 🎬✨ Not a typical project. No CRUD, no backend. Just pure frontend craft. Here's what's inside: 🎥 Video zoom on scroll — GSAP-powered expansion that feels cinematic ✂️ Clip-path morphing — shapes that transition as you move through the page 📦 Scroll-triggered bento grid — images that expand as they enter the viewport 🃏 Animated card carousel — staggered fades with visual hierarchy ✍️ Split text + parallax — every word feels intentional Lighthouse scores: 🟢 Performance: 82 · 🟢 Best Practices: 100 · 🟢 SEO: 82 What I really learned: Getting smooth 60 FPS animations on the web is hard. GSAP's ScrollTrigger is powerful but unforgiving — one misplaced timeline and the whole sequence breaks. Spent a lot of time on React optimization and lazy loading to keep things buttery. Tech: React · GSAP + ScrollTrigger · Tailwind CSS · Vercel live:-https://lnkd.in/ghYjMR6C Well Need a lil optimization well gotta share it with u guyz :) #GSAP #React #Frontend #WebAnimations #TailwindCSS #BuildInPublic #JavaScript #PortfolioProject #WebDevelopment #CSS
To view or add a comment, sign in
-
A massive upgrade from my old portfolio to this:- looks much more premium, doesn't it? Instead of a typical static portfolio, I wanted something that feels more like a cinematic experience, something with a more "WOW" factor. ✨ Some things I built into it: • A frame-by-frame cinematic hero animation synchronized with scroll • A live GitHub activity timeline that resolves real commit messages via a two-stage API system • An AI-powered “Roast My Code” feature using Gemini AI • Glassmorphism UI with a consistent frosted-glass design system • Project descriptions with real metrics and performance impact ⚙️ Tech Stack Next.js (React 19) TypeScript Tailwind CSS v4 Custom requestAnimationFrame animation engine Next.js Server Actions & API Routes One of the most interesting parts was building the scroll animation engine. To maintain smooth motion at 60FPS, I avoided traditional React re-renders and instead used a requestAnimationFrame loop with direct canvas rendering, combined with scroll lerping and intelligent asset caching. This allowed the animation to stay smooth even during rapid scrolling. TLDR, my portfolio is now live and you guys should check it out: Website:- https://lnkd.in/gDKeWDG2 Github: https://lnkd.in/gtSBRu-6 I’m always experimenting and pushing my skills further, so this portfolio will keep evolving as I build more projects. Would love to hear honest feedback from you all! Note:- It is advised to view this website on desktop/laptop for a smoother experience.
To view or add a comment, sign in
-
🚀 Just Built an Interactive Image Editor using JavaScript & Canvas API! Excited to share my latest project where I explored real-time image processing directly in the browser. I implemented features like brightness, contrast, blur, grayscale, and custom presets like vintage, drama, and cyberpunk 🎨 🔧 What I used: • HTML, CSS, JavaScript • Canvas API for image manipulation • Dynamic sliders & preset system 🧠 What I learned: • How Canvas rendering works • Applying multiple filters dynamically • Handling image uploads & real-time updates • Improving UI/UX with presets 🌐 Live Demo (Vercel):https://lnkd.in/duafXkRB 💻 GitHub Repo:https://lnkd.in/djensb-R Would love your feedback! 🙌 Sheryians Coding School Sheryians Coding School Community Sarthak Sharma Ankur Prajapati Ritik Rajput Devendra Dhote #WebDevelopment #JavaScript #Frontend #Projects #Learning #BuildInPublic
To view or add a comment, sign in
Explore related topics
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