Merge pull request #176 from sijinhui/dongxiao-240924

加快一点动画速度
This commit is contained in:
sijinhui 2024-09-26 18:22:54 +08:00 committed by GitHub
commit 50f9a28c4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ export function ChatList(props: { narrow?: boolean }) {
<QueueAnim <QueueAnim
delay={[100, 0]} delay={[100, 0]}
ease={"easeOutQuart"} // "easeInOutQuart" ease={"easeOutQuart"} // "easeInOutQuart"
duration={[550, 450]} duration={[350, 450]}
animConfig={[ animConfig={[
{ opacity: [1, 0], translateY: [0, -30], height: [71, 0] }, { opacity: [1, 0], translateY: [0, -30], height: [71, 0] },
{ height: 0 }, { height: 0 },
@ -181,7 +181,7 @@ export function ChatList(props: { narrow?: boolean }) {
onEnd={({ key, type, target }) => { onEnd={({ key, type, target }) => {
if (type === "enter") target.style.height = "auto"; if (type === "enter") target.style.height = "auto";
}} }}
// interval={150} interval={50}
> >
{sessions.map((item, i) => ( {sessions.map((item, i) => (
<div key={item.id}> <div key={item.id}>