Forums

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

Home Forums CSS Elements show on load then hide, then animate and show

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

    Hey! I’m just playing around with animations for the first time and I can’t figure out why on load, elements are showing then hiding and then animating in. I’d like them to be hidden until they’re supposed to animate in. Not flicker so it looks much smoother.
    http://justaddmilk.co/Innovative_holdingpage/
    Thanks!
    Ben

    #255049
    Beverleyh
    Participant

    I see you’re using animate.css.

    Try setting the initial state of the element to .element { visibility:hidden; }

    Then change it to .element.animated { visibility:visible; } for when the animation kicks in.

    If you need further help, please provide a reduced demo in CodePen (preferable to poking about in the developer console where there are too many other elements/distractions to filter out on a live site).

    #255058
    benjaminge1
    Participant

    Thank you Beverleyh!

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