Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sentry launches MCP monitoring tool

      August 14, 2025

      10 Benefits of Hiring a React.js Development Company (2025–2026 Edition)

      August 13, 2025

      From Line To Layout: How Past Experiences Shape Your Design Career

      August 13, 2025

      Hire React.js Developers in the US: How to Choose the Right Team for Your Needs

      August 13, 2025

      I’ve tested every Samsung Galaxy phone in 2025 – here’s the model I’d recommend on sale

      August 14, 2025

      Google Photos just put all its best editing tools a tap away – here’s the shortcut

      August 14, 2025

      Claude can teach you how to code now, and more – how to try it

      August 14, 2025

      One of the best work laptops I’ve tested has MacBook written all over it (but it’s even better)

      August 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Controlling Execution Flow with Laravel’s Sleep Helper

      August 14, 2025
      Recent

      Controlling Execution Flow with Laravel’s Sleep Helper

      August 14, 2025

      Generate Secure Temporary Share Links for Files in Laravel

      August 14, 2025

      This Week in Laravel: Filament 4, Laravel Boost, and Junie Review

      August 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      KDE Plasma 6 on Wayland: the Payoff for Years of Plumbing

      August 14, 2025
      Recent

      KDE Plasma 6 on Wayland: the Payoff for Years of Plumbing

      August 14, 2025

      FOSS Weekly #25.33: Debian 13 Released, Torvalds vs RISC-V, Arch’s New Tool, GNOME Perfection and More Linux Stuff

      August 14, 2025

      Ultimate ChatGPT-5 Prompt Guide: 52 Ideas for Any Task

      August 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»Scroll-Driven Animations Inside a CSS Carousel

    Scroll-Driven Animations Inside a CSS Carousel

    May 15, 2025

    I was reflecting on what I learned about CSS Carousels recently. There’s a lot they can do right out of the box (and some things they don’t) once you define a scroll container and hide the overflow.

    Hey, isn’t there another fairly new CSS feature that works with scroll regions? Oh yes, that’s Scroll-Driven Animations. Shouldn’t that mean we can trigger an animation while scrolling through the items in a CSS carousel?

    Why yes, that’s exactly what it means. At least in Chrome at the time I’m playing with this:

    CodePen Embed Fallback

    It’s as straightforward as you might expect: define your keyframes and apply them on the carousel items:

    @keyframes foo {
      from {
        height: 0;
      }
      to {
        height: 100%;
        font-size: calc(2vw + 1em);
      }
    }
    
    .carousel li {
      animation: foo linear both;
      animation-timeline: scroll(inline);
    }

    There are more clever ways to animate these things of course. But what’s interesting to me is that this demo now combines CSS Carousels with Scroll-Driven Animations. The only rub is that the demo also slaps CSS Scroll Snapping in there with smooth scrolling, which is effectively wiped out when applying the scroll animation.

    I thought I might work around that with a view() timeline instead. That certainly makes for a smoother animation that is applied to each carousel item as they scroll into view, but no dice on smooth scrolling.

    CodePen Embed Fallback

    Scroll-Driven Animations Inside a CSS Carousel originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleGNOME Maps – find places around the world
    Next Article Developer Spotlight: Andrew Woan

    Related Posts

    News & Updates

    I’ve tested every Samsung Galaxy phone in 2025 – here’s the model I’d recommend on sale

    August 14, 2025
    News & Updates

    Google Photos just put all its best editing tools a tap away – here’s the shortcut

    August 14, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-37823 – Linux Kernel Net-Sched HFSC Use-After-Free Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Seagate’s Storage Expansion Card for Xbox is on sale — “An almost-perfect solution that seamlessly expands your Xbox”

    News & Updates

    CVE-2025-7511 – Code-projects Chat System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-36486 – Parallels Desktop for Mac Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Meta and Oakley Launch $499 Smart Glasses for Athletes with AI, Speakers, and Much More

    June 24, 2025

    Meta and Oakley unveil performance smart glasses with a 3K camera, built-in AI assistant, and…

    CVE-2025-8279 – GitLab Language Server GraphQL Query Injection Vulnerability

    July 28, 2025

    Motherhood and Career Balance in Tech: Stories from Perficient LATAM

    May 19, 2025

    The Secret Defense Strategy of Four Critical Industries Combating Advanced Cyber Threats

    June 2, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.