Announcement

Collapse
No announcement yet.

Delay der Animation hinzufügen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delay der Animation hinzufügen

    Hallo,

    ich möchte die animation-delay für die einzelne icons mit unterschiedlichen delays definieren & hinzufügen.

    in scss:
    ----------

    .list--social-icons li {
    @include opacity-visibility(0, hidden);
    @include animation(1s, bounceInUp);
    }

    in ts/js:
    ------------

    const listSocialIcons: HTMLElement = document.querySelector('.list--social-icons')

    const counter = () : void => {
    const listChild: any = listSocialIcons.children

    for (let i=0; i<listChil d.length; i++) {
    setTimeout( () => {
    listChild[i]
    }, i * 3000 )
    }
    }

    Kann nicht rausfinden was in ts fehlt. Hätte jemand eine Idee?


  • #2
    Was soll denn fehlen?
    Debug das doch durch.
    Christian

    Comment

    Working...
    X