- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Fri, 30 Dec 2022 05:13:53 +0000
- To: public-css-archive@w3.org
Hmm, sorry, I did not understand. You want `animation-duration` to depend on the animated text length. So a theoretical `animation-speed` would define a dynamic value for it. But speed is coupled to `<length>` (distance) whereas `animation` can animate an integer, an angle, a resolution, etc... So you would always compute `animation-speed` from the block width of the animated element, I guess, which feels weird when animating properties that do not represent a distance, eg. `opacity` or `color`. ```css .animated { animation-name: animateWithSpeed; animation-speed: calc(1px / 1ms); } @keyframes animateWithSpeed { to { opacity: 0; color: purple; transform: translateX(100%); } } ``` -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8265#issuecomment-1367732850 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 30 December 2022 05:13:55 UTC