- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 26 Sep 2024 22:34:50 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-easing-2] Custom curve-based easing functions`. <details><summary>The full IRC log of that discussion</summary> <fantasai> TabAtkins: Easying 2 spec added linear() function<br> <fantasai> TabAtkins: which allows any timing function you want in theory, but annoying if non-trivial function<br> <fantasai> TabAtkins: so there's a big batch of suggestions for other timing functions<br> <fantasai> TabAtkins: Possibilities include<br> <fantasai> piecewise cubic splines<br> <fantasai> SVG paths<br> <fantasai> other cubic-splines ideas<br> <flackr> q+<br> <fantasai> cubic-bezier<br> <fantasai> spring<br> <fantasai> midpoint<br> <fantasai> stacking easing functions<br> <fantasai> chaining easing function<br> <fantasai> easing based on math, e.g. supply a sin() function or whatever<br> <fantasai> JS-driven easing functions, 2 variants<br> <fantasai> TabAtkins: I want to decide which ones we want to include in easing 2 vs defer<br> <fantasai> TabAtkins: inclined to do just chaining and cubic-splining<br> <fantasai> TabAtkins: but could also be sold on spring<br> <kbabbitt> q+<br> <fantasai> TabAtkins: otherwise at some point will ask for a cutoff<br> <emilio> q+<br> <fantasai> TabAtkins: opinions?<br> <astearns> ack flackr<br> <ydaniv> q+<br> <fantasai> flackr: Don't have strong opinions on which specific function<br> <fantasai> flackr: but if using automatic duration for spring(), usually compute based on a distance<br> <fantasai> flackr: but animations don't currently have a distance<br> <fantasai> flackr: some hard to know what it would be, others there's no distance (e.g. color)<br> <fantasai> flackr: so we'll need an answer to that if we want to do it<br> <astearns> ack kbabbitt<br> <fantasai> kbabbitt: I only have an opinion on JS-driven. I understand desire, but either need to super constrain or will not be able to run performantly<br> <fantasai> TabAtkins: if JS available, generating a sufficient precise linear() is trivial, just do it<br> <astearns> ack emilio<br> <fantasai> emilio: 1st comment in issue also mentions SVG paths<br> <fantasai> emilio: how would you do that?<br> <fantasai> TabAtkins: similar to cubic-bezier()<br> <fantasai> TabAtkins: restrictions force it to be a function (one y per x)<br> <fantasai> TabAtkins: idk, don't think we should pursue<br> <fantasai> emilio: [mumble]<br> <astearns> ack ydaniv<br> <fserb> q+<br> <fantasai> ydaniv: I think we can pursue the math function one<br> <fantasai> ydaniv: using same syntax we have today for relative color<br> <fantasai> ydaniv: it will probaby kill the JS-driven use cases<br> <fantasai> ydaniv: and will cover a lot of easings that can be closely handled by cubic-bezier etc.<br> <fantasai> ydaniv: so that's worth trying<br> <fantasai> ydaniv: regarding spring(), might be difficult if we define something that gives you a duration that's not immediately known<br> <fantasai> ydaniv: stuff in Web Animations 2 like group effect<br> <fantasai> ydaniv: might need to know animation duration ahead of time<br> <fantasai> TabAtkins: integration with other types of animations makes me uncertain about an easing that has its own duration baked in<br> <fantasai> TabAtkins: more things to answer<br> <astearns> ack fserb<br> <fantasai> fserb: +1 to avoid the cubic-bezier and to use spline<br> <fantasai> fserb: because the code to handle that is awful<br> <fantasai> fserb: I think spline? is generic enough<br> <fantasai> fserb: if can do chaining etc then should be good enough<br> <fantasai> fserb: I think math-based is not good. Chaining is easier to understand<br> <fantasai> fserb: given that ? is not easy<br> <fantasai> fserb: given what I've seen people try to do<br> <fantasai> fserb: I have list of advanced cases, e.g. mobiel has special easings etc.<br> <fantasai> s/mobiel/mobile<br> <fantasai> TabAtkins: idk if multi-spline is fully general, but it can do a lot of htings including spring<br> <fantasai> fserb: Way specified, it allows for discontuity<br> <fantasai> astearns: enough feedback, Tab?<br> <TabAtkins> TabAtkins: yep<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7508#issuecomment-2378055713 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 26 September 2024 22:34:52 UTC