Skip to content

HideCharacter

Hides the character

Parameters

NameTypeOptionalDescription
characterstringPerson ID
classNamestring✔️Element.className
stylestring✔️style attribute
durationnumber✔️The time after which to hide the character. It is necessary if you need to play the delete animation

Usage

ts
engine.script({
  start: [
    engine.action.hideCharacter(
      "Naruto",
      "animate__animated animate__backOutDown",
      "left: 15%;",
      1000
    ),
  ],
});

Released under the ISC License.