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

      The Psychology Of Color In UX Design And Digital Products

      August 15, 2025

      This week in AI dev tools: Claude Sonnet 4’s larger context window, ChatGPT updates, and more (August 15, 2025)

      August 15, 2025

      Sentry launches MCP monitoring tool

      August 14, 2025

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

      August 13, 2025

      Designer Spotlight: Clarisse Michard

      August 15, 2025

      Covering hidden=until-found

      August 15, 2025

      A Few Things About the Anchor Element’s href You Might Not Have Known

      August 15, 2025

      Error’d: Abort, Cancel, Fail?

      August 15, 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

      Calorie Burn Tracker using Python & Machine Learning

      August 15, 2025
      Recent

      Calorie Burn Tracker using Python & Machine Learning

      August 15, 2025

      How to install OpenReports — IoT platform

      August 15, 2025

      Controlling Execution Flow with Laravel’s Sleep Helper

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

      Chrome soon makes it easier to recall your tab groups and run AI Mode from the address bar

      August 15, 2025
      Recent

      Chrome soon makes it easier to recall your tab groups and run AI Mode from the address bar

      August 15, 2025

      How to Change Primary Monitor: A Surprisingly Simple Shift 

      August 15, 2025

      Reddit Fix: Your request has been blocked due to network policy reddit

      August 15, 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

    Designer Spotlight: Clarisse Michard

    August 15, 2025
    News & Updates

    Covering hidden=until-found

    August 15, 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-36633 – Tenable Agent Local Privilege Escalation

    Common Vulnerabilities and Exposures (CVEs)

    How to Use JSON Data Fields in MySQL Databases

    Development

    A faster way to solve complex planning problems

    Artificial Intelligence

    CVE-2025-3999 – Seeyon Zhiyuan OA Web Application System Cross-Site Scripting Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    AiLock ransomware: What you need to know

    July 9, 2025

    The AiLock ransomware gang gives its victims just 72 hours to respond and five days…

    CVE-2025-3977 – Iteaachyou Dreamer CMS Attachment Handler Remote Authorization Bypass Vulnerability

    April 27, 2025
    CERT-In Flags Info Disclosure Flaw in TP-Link Tapo H200 Smart Hub

    CERT-In Flags Info Disclosure Flaw in TP-Link Tapo H200 Smart Hub

    April 9, 2025

    How Rufus doubled their inference speed and handled Prime Day traffic with AWS AI chips and parallel decoding

    May 28, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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