Skip to content

Chat scene 'typing indicator' animation close but not perfect #21

Description

@nopivnick

Two issues:

  1. I can't figure out how to get the CSs typing indicator animation to justify left inside it's parent element. It's nested inside a flexbox but doesn't seem to abide by align-self: flex-start;.

  2. I managed to keep pushing the typing indicator animation further down the page after each chat message appears by hiding all the chat transcript messages onEnterScene(). All well and good. Now the question is how to display (i.e., show()) the animation only when a message with CSS class message-recd is next in line to be un-hidden but I don't know how to code logic that checks the CSS class assigned to only the first hidden element on the page.

Perhaps I need another list of cues like the one @noisyneuron advised me to use to get messages to appear only once charIndex reaches the last character of a given chat message. If so, I assume there need to be cues for when to turn off as well as when to turn on. In which case I assume the cue list will be an array of nested arrays with 2 elements: 'ins' and 'outs'.

luna-cycle_typing-animation.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp5

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions