官术网_书友最值得收藏!

AngularJS – combining JavaScript and CSS3

AngularJS has adopted the standards for animation on the Web. It embraces CSS3 Transitions, animations, and JavaScript. It's great because the developers can choose the animation option that best fits their needs. As you have already read, sometimes, one option fits better than other, so this is a great feature of ngAnimate.

With the ngAnimate module, it is far easier to animate in AngularJS because it brings a code pattern and convention that is already integrated with AngularJS native directives. This allows us—the developers and the open source community—to have a quick start to animation and a pattern to develop our custom animations. In later chapters, we will see how to integrate custom directives with AngularJS animations using the $animate service, which is the main topic of Chapter 5, Custom Directives and the $animate Service.

This is all possible due to the class-bases approach that AngularJS uses. We will see more of this in Chapter 3, Creating Our First Animation in AngularJS, when we create our first AngularJS animation.

Another advantage is that it's easy to integrate CSS animation libraries such as animate.css and Effeckt.css, as these libraries use CSS3 transitions and animations.

Check out http://daneden.github.io/animate.css/ and http://h5bp.github.io/Effeckt.css/ for CSS animations libraries.

主站蜘蛛池模板: 聊城市| 静宁县| 乌拉特后旗| 新巴尔虎右旗| 林州市| 囊谦县| 雷波县| 菏泽市| 镇江市| 衡水市| 马公市| 巴林左旗| 连南| 台南市| 南和县| 南澳县| 桦甸市| 福海县| 电白县| 永州市| 淳化县| 武鸣县| 湖北省| 大化| 荆州市| 白河县| 建昌县| 大田县| 德安县| 旺苍县| 德阳市| 柳江县| 瓦房店市| 肥乡县| 岢岚县| 鹤山市| 莒南县| 舟山市| 东乌| 仲巴县| 扶沟县|