docs icon indicating copy to clipboard operation
docs copied to clipboard

doc tell is diffrent with source code: "Native CSS animations are applied in the same way as CSS transitions, with the difference being that *-enter-from is not removed immediately after the element is inserted, but on an animationend event"

Open lightnoway opened this issue 1 year ago • 0 comments

at the CSS Animations parts

  • Native CSS animations are applied in the same way as CSS transitions, with the difference being that *-enter-from is not removed immediately after the element is inserted, but on an animationend event

  • it's not the true : *-enter-from remote at nextFrame not animationend
        nextFrame(() => {
          removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass)
        // just remove  `*-enter-from`  in nextFrame
    
    • and i tried console.log ; result is also remove *-enter-from in nextFrame

lightnoway avatar Dec 27 '23 17:12 lightnoway