September 2nd, 2024

CSS-only infinite scrolling carousel animation

The article explains how to create an infinite scrolling carousel animation using only CSS, featuring a pause-on-hover function, targeting developers and promoting Logto's authentication services and newsletter.

Read original articleLink Icon
CSS-only infinite scrolling carousel animation

The article discusses the creation of an infinite scrolling carousel animation using only CSS, emphasizing that no JavaScript is required for implementation. The carousel features a pause-on-hover functionality, enhancing user interaction. The content is aimed at developers and designers looking to implement this animation technique in their projects. The blog is part of Logto's offerings, which include various products and services related to passwordless authentication, user management, and multi-factor authentication. The article is concise, providing a quick overview of the animation technique while promoting Logto's cloud services and newsletter subscriptions.

- The carousel animation is created using only CSS, with no JavaScript needed.

- It includes a pause-on-hover feature for improved user experience.

- The content targets developers and designers interested in animation techniques.

- Logto offers various products related to authentication and user management.

- The blog encourages subscriptions to stay updated on product developments.

Link Icon 5 comments
By @baliex - 7 months
Have you tried this in a mobile browser? I’m seeing the headline cut off because the page ends up being wider than my viewport because of the position of the later carousel elements.

It otherwise looks great but the side scrolling is too much of a compromise for me.

I’m using Safari on iPhone.

By @kalev - 7 months
It’s <marquee> with extra steps, except for the pause which i’m not sure is possible
By @bryanrasmussen - 7 months
I think you could probably cause it to move on click by using the target selector, like in this old article here that is probably a bit out of date nowadays https://blog.logrocket.com/dynamism-and-css-calculations/

>But there is a pseudo-class in the location category that I don’t often see used: the target pseudo-class, which allows us to style a part of the page that is the currently active target. In other words, if we have a link that leads to a part of the page, we can style that part of the page when the link is clicked.

By @shanghaikid - 7 months
duplicate items are not good for SEO.