Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS flex and animation

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #190725
    beginner123
    Participant

    hi,

    i have a div(class=”main”) with 3 other divs inside which i want to animate.
    i tried with:

    .main {display:flex; animation-name: animation; animation-duration: 10s; animation-timing-function:linear; animation-delay: 2s; animation-iteration-count: infinite; animation-play-state: running;}

    @keyframes animation {
    0% {align-items:flex-start;}
    20% {align-items:flex-end;}
    40% {align-items:stretch;}
    60% {align-items:baseline;}
    80% {align-items:center;}
    100% {align-items:initial;}
    }

    but nothing happend.. can someone help me?

    #190728
    Paulie_D
    Member

    My first question is “is align-items animatable in the first place”?

    My initial guess is “NO”.

    EDIT – Seems I was right – https://developer.mozilla.org/en-US/docs/Web/CSS/align-items

    #190729
    Paulie_D
    Member

    So, with that, what are you actually trying to achieve?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.