Most people scroll the web. Developers try to understand how it moves. Today I built this animation using the HTML5 Canvas API and JavaScript. At first, Canvas feels confusing coordinates, animation loops, physics logic. But once you understand how the render → update → draw cycle works, you realize you can create almost anything. This small experiment helped me understand: • How objects move using velocity and gravity • How the animation loop works with requestAnimationFrame() • How Canvas redraws frames to create smooth motion • How simple math can create beautiful visual effects The best part? It’s just HTML + JavaScript + curiosity. I’m trying to build something small every day to improve my frontend and creative coding skills. Consistency > Motivation. Devendra Dhote Sarthak Sharma Sheryians Coding School #JavaScript #HTMLCanvas #CreativeCoding #WebDevelopment #FrontendDevelopment #BuildInPublic
More Relevant Posts
-
Hi everyone! ✨ Day 27 of #30DaysCodeChallenge Today I built an Interactive Particle Background Animation using HTML, CSS, and JavaScript. In this project, I created a dynamic particle system where multiple particles move across the screen and interact with each other. When the user moves the mouse, the particles are attracted toward the cursor, creating a smooth and engaging visual experience. Nearby particles also connect with lines, forming a beautiful network-like animation. This project helped me practice advanced JavaScript concepts such as canvas animations, object-oriented programming, and real-time user interactions. 🔧 Key Features: • Interactive particle animation using the Canvas API • Mouse gravity effect that attracts particles • Dynamic connections between nearby particles • Smooth animations using requestAnimationFrame() • Theme modes like Galaxy, Neon, and Ocean • Glassmorphism control panel UI 💡 What I Learned: • Working with the HTML Canvas API • Creating animation loops in JavaScript • Implementing particle physics logic • Handling mouse events for interactive effects • Building visually engaging UI components This was a great exercise to improve my frontend animation skills and understand how modern interactive backgrounds are built for websites. Looking forward to building more creative projects in the coming days! 🚀 #30DaysCodeChallenge #Day27 #HTML #CSS #JavaScript #FrontendDevelopment #WebDevelopment #CodingChallenge #LearningInPublic #WomenInTech
To view or add a comment, sign in
-
A Valorant-inspired typewriter animation built with pure HTML, CSS, and JavaScript. A lightweight single-file UI experiment featuring glitch transitions, animated progress feedback, and a tactical HUD aesthetic, perfect for learning, customizing, or reusing in your own projects. Click the ⭐ if you liked it and follow me Github: https://lnkd.in/eY6xJQuT Demo: https://lnkd.in/e7XfM5YD #html5 #html #css #css3 #javascript #frontend
To view or add a comment, sign in
-
🟢 Matrix Hover Effect — Turning Text into a Digital Rain Illusion Experimented with a Matrix-inspired hover effect where the text transforms into a dynamic digital-style animation when the cursor moves over it. The goal wasn’t just to style text — it was to create an effect that feels cinematic and interactive. On hover: • The text transitions into a Matrix-style visual effect • Characters animate dynamically • The UI responds instantly to cursor interaction • Smooth timing creates a “digital rain” illusion This project pushed me to think beyond traditional UI design and explore creative frontend animations using DOM logic and CSS transitions. It’s fascinating how a simple hover event can completely transform the perception of a static element. Frontend development isn’t limited to layouts — it can create atmosphere, motion, and emotion. Mentor:- Sheryians Coding School | Sarthak Sharma | Harsh Vandana Sharma | Ankur Prajapati 🧠 Tech Stack: HTML | CSS | SCSS | JavaScript (DOM) #JavaScript #DOM #FrontendDevelopment #CreativeCoding #WebAnimation #MatrixEffect #HoverEffect #CSS #SCSS #BuildInPublic #DeveloperJourney
To view or add a comment, sign in
-
Pop‑In Like Button Animation with JavaScript #coding #shorts In this project, we build a stylish like button animation using HTML, Tailwind CSS, and JavaScript. When clicked, the button shows a loading state, then transforms into a heart icon with a smooth pop‑in effect and a ping animation. This short tutorial demonstrates how to combine custom CSS keyframes, event listeners, and DOM manipulation to create engaging UI interactions. Perfect for beginners who want to add polished animations to their projects. Features - Interactive like button with loading state. - Custom pop‑in animation using CSS keyframes. - Ping effect for extra visual flair. - Event listener to handle button clicks. - DOM manipulation to swap button with an image. - Tailwind CSS utilities for layout, transitions, and hover effects. - Beginner‑friendly code with minimal setup. Connect with me YouTube: https://lnkd.in/gAtk9suf LinkedIn: https://lnkd.in/gu-ZN9dB Facebook: https://lnkd.in/gsV-S_sh Instagram: https://lnkd.in/gEUR34hP TikTok: https://lnkd.in/gQvUEgSq GitHub: https://lnkd.in/gTcg6vFt Subscribe for more creative coding demos, Canvas tutorials, and short projects optimized for social platforms 🚀 #javascript #html #tailwindcss #cssanimation #coding #shorts #webdevelopment #frontend #dom #codingforbeginners #learnjavascript #interactiveui #frontendproject #htmlcssjavascript #codingtutorial #simpleprojects #jsbasics #likebutton #creativecoding #webdesign #dynamicui #webdevproject
To view or add a comment, sign in
-
𝐌𝐨𝐬𝐭 𝐬𝐜𝐫𝐨𝐥𝐥 𝐩𝐫𝐨𝐠𝐫𝐞𝐬𝐬 𝐛𝐚𝐫𝐬 𝐝𝐨𝐧'𝐭 𝐧𝐞𝐞𝐝 𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭 I see this pattern constantly in codebases for scroll event listeners, requestAnimationFrame loops, manual throttling to animate something CSS can now handle natively 🤯 @𝘬𝘦𝘺𝘧𝘳𝘢𝘮𝘦𝘴 𝘨𝘳𝘰𝘸 { 𝘧𝘳𝘰𝘮 { 𝘸𝘪𝘥𝘵𝘩: 0%; } 𝘵𝘰 { 𝘸𝘪𝘥𝘵𝘩: 100%; } } .𝘱𝘳𝘰𝘨𝘳𝘦𝘴𝘴-𝘣𝘢𝘳 { 𝘱𝘰𝘴𝘪𝘵𝘪𝘰𝘯: 𝘧𝘪𝘹𝘦𝘥; 𝘵𝘰𝘱: 0; 𝘩𝘦𝘪𝘨𝘩𝘵: 4𝘱𝘹; 𝘣𝘢𝘤𝘬𝘨𝘳𝘰𝘶𝘯𝘥: 𝘭𝘪𝘯𝘦𝘢𝘳-𝘨𝘳𝘢𝘥𝘪𝘦𝘯𝘵(𝘵𝘰 𝘳𝘪𝘨𝘩𝘵, #6366𝘧1, #𝘦𝘤4899); 𝘢𝘯𝘪𝘮𝘢𝘵𝘪𝘰𝘯: 𝘨𝘳𝘰𝘸 𝘭𝘪𝘯𝘦𝘢𝘳; 𝘢𝘯𝘪𝘮𝘢𝘵𝘪𝘰𝘯-𝘵𝘪𝘮𝘦𝘭𝘪𝘯𝘦: 𝘴𝘤𝘳𝘰𝘭𝘭(𝘳𝘰𝘰𝘵); } That's genuinely it. No listeners. No JS bundle cost. No main thread drama. The browser handles it natively, which means it's also smoother than most hand-rolled solutions. The property is called animation-timeline: scroll() You can tie any CSS animation to scroll position. Parallax, fade-ins, counters... the creativity goes deep. One thing to verify: Safari support landed in v18, so audit your traffic before adopting it in production. If you're working on a project with modern browser targets though, this is a straightforward swap with a real performance upside. Are you still reaching for JavaScript for scroll-driven effects? 🤔 #CSS #WebDevelopment #Frontend #FrontendDevelopment #CSSAnimation #Programming #WebDesign #Developer
To view or add a comment, sign in
-
-
𝗧𝗵𝗲 𝗣𝗼𝘄𝗲𝗿 𝗢𝗳 𝗖𝗦𝗦 You can create a sticky navbar that slides in when you scroll. Most developers use JavaScript for this. But you can do it with modern CSS. You can connect animation progress to page scroll. This means you can make your navbar slide in as you scroll. No JavaScript is needed. Here's how it works: - CSS supports scroll-driven animations - You can control when the animation plays - The animation runs over scroll distance, not time This is useful for building UI systems. It means you have: • fewer scroll listeners This is especially useful in React or other frameworks. You can try this out with a small demo. Small CSS features like this are changing how we build interfaces. Sometimes the best way to optimize is to remove JavaScript. Source: https://lnkd.in/gPqxmW_E
To view or add a comment, sign in
-
Two years ago, you needed JavaScript libraries just to fade in a modal or stagger a list animation. In 2026? Pure CSS handles all of that -- and it runs on the GPU. I just wrote about 7 CSS features that have genuinely replaced JavaScript in my daily workflow: -- @starting-style for entry/exit animations (no more JS timing hacks) -- scroll-driven animations (goodbye IntersectionObserver) -- interpolate-size (finally, animate to height: auto) -- sibling-index() for native staggered animations -- @property for animating gradients and colours -- individual transform properties with independent timing -- the no-motion-first accessibility pattern The best part? Most of these are cross-browser and production-ready right now. If you're still importing animation libraries for basic show/hide or scroll effects, this one's for you. https://lnkd.in/ehhY-6AB #CSS #WebDevelopment #FrontendDevelopment #UIDesign #JavaScript #Animation
To view or add a comment, sign in
-
When the problem is not JavaScript When a page feels slow, many developers first suspect heavy scripts. But in one of my projects there was almost no JavaScript — and the page still felt sluggish. The reason turned out to be CSS. Heavy visual effects like blur, shadows and filters were making rendering more expensive. Unlike scripts that run in specific moments, CSS affects how the browser renders every frame. Every scroll, animation or DOM update may trigger: • style recalculation • layout • paint Things that often cause this: • deeply nested flex or grid containers • complex styles that trigger layout recalculations • heavy visual effects (blur, shadows, filters) • animations that affect layout instead of using transform Performance issues are not always about JavaScript. Sometimes the layout itself is the bottleneck. Have you ever seen performance problems caused mostly by CSS? #WebPerformance #FrontendDevelopment #CSS #FrontendEngineering #WebDevelopment
To view or add a comment, sign in
-
Built a rotating carousel using pure CSS transforms to showcase dynamic blog content. No heavy libraries, just clean and efficient code. Key features: 8 blog cards rotating in a 3D circle Dynamic data fetching for real-time updates Smooth 32-second continuous rotation animation Hover-to-pause interaction for easy reading Blueprint grid background for a technical aesthetic Tech stack: HTML5, CSS3, JavaScript Shout out to @Lun Dev Code for the design inspiration. Looking to collaborate on similar projects? Let's connect! 👇 #WebDesign #FrontendDev #CSSAnimation #TechDesign #WebDevelopment
To view or add a comment, sign in
-
A few lines of CSS and ZERO Javascript = a lot of learning. The <details> element used to snap open/close instantly. No animation possible. Here's why, and how 2 CSS rules fix it: transition: 300ms allow-discrete Normally, the browser flips the open attribute instantly — a discrete state that can't be animated. allow-discrete tells it: wait for the transition to finish first. height: calc-size(auto, size) You can't animate height: 0 → auto because auto isn't a fixed value. calc-size() solves that — it tells the browser to calculate the final height and interpolate smoothly. overflow-y: hidden (or clip) Setting height: 0 only shrinks the box — not the content inside it. Try this: p { height: 0; } You'll still see the text — it overflows outside the box. Adding overflow-y: hidden (or clip) masks anything beyond the boundary, so as height animates down to 0, the content disappears cleanly with it. Three properties. Zero JavaScript. #CSS #CSSTips #WebDevelopment
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