Forums

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

Home Forums CSS CSS animations — will they replace JS?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39645
    GMB
    Participant

    Gotta say that I’m really impressed with many of the CSS animations on CodePen and am wondering if those in the know here see it taking more and more of the animation pie away from JS? I’d be curious to know why or why not.

    #109119

    It really depends on the scope of the animation. I’m a firm believer in separating content, presentation and interaction (HTML, CSS and JS), so if it is just a little animation that compliments the styling, then use CSS, but if it is interactive, then JS is probably the way to go.

    With that being said, I have certainly done interactive animations on CodePen using CSS, but that was more as a showcase, and generally using techniques I wouldn’t recommend for production.

    #109109

    @jamy_za The main issue for me is that in many of those cases we are using CSS ‘tricks’, such as the checkbox hack, which are pretty poor semantically.

    #109112
    Kitty Giraudel
    Participant

    If no mistake, CSS animations are heavy. Way heavier than JS animations.

    #109103

    @jamy_za I do like :target quite a bit, but it can perform poorly in some situations (i.e. repeating clicking, toggling).

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