Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Interesting Articles on Greensock Animations Vs CSS

3/10/2016

0 Comments

 
Back during my "flash master jim" days I had used greensock's tweenLite, TweenMax, and TimelineLite libraries in actionscript 3. Now, coming over to Javascript in an angular setting, I found it rather troubling to slide a div across the screen (although this was partly due to me not fully understanding the position css property at the time). There are basically two ways to do basic transformations and style changes in the html/js world: css animations (possibly with the help of ng-animate) and greensock animations.*
* Note: There may be other animation libraries, but for non-spritesheet animations these are by far the top two in terms of popularity and performance.

In general CSS animations have been described as "blazingly fast", and even my angular 102 instructor said "CSS is the fastest" (although he had never used greensock). Below, I've linked some interesting articles on the subject (obviously biased since they are on the greensock website).

Doubts About CSS Claims?

  • Cage Match: https://greensock.com/transitions/
  • The Untold Story on CSS Performance: http://greensock.com/css-performance
  • Myth Busting Forum Post: http://greensock.com/forums/topic/8868-myth-busting-css-animations-vs-javascript/

The Truth

You can count on Jim to cut the BS ans tell it to you like it is. The truth is, both CSS and Greensock transitions are great. They are super smooth even on mobile devices. It really comes down to a matter of api preference and to a lesser degree what you are actually animating.

The Bottom Line

The bottom line is:
You have no reason to not have BUTTERY SMOOTH sliding, scaling, color changing, etc animations in your html/js/css project since you'll get it using either pure CSS or Greensock.
You can't go wrong really. Unless you use jquery... then you're screwed!
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Picture
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blockchain
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Investing
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    March 2023
    August 2021
    February 2021
    January 2021
    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2023