- CSS challenge for @kizu.dev, @css-only.dev, @ishadeed.com and all the other CSS wizards: I'm trying to define an animation on hover that scrolls truncated text to reveal the entire sentence. Except somehow make the text stop at the right moment instead of scrolling completely out of view…
- like this: codepen.io/t_afif/pen/q... ?
- oh wow, that's actually way simpler than what I was trying with animations! I'm implementing this right away, thanks!
- and if the width is fixed/known you can get rid of margin and use translate: calc(-100% + w). Or you make the parent a container and use translate: calc(-100% + 100cqw)May 14, 2025 12:06
- live on 2024.stateofreact.com/en-US/usage/... :)