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

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.

主站蜘蛛池模板: 彭州市| 城市| 汪清县| 长汀县| 黑山县| 门头沟区| 彰化县| 德昌县| 宜昌市| 棋牌| 榆树市| 永德县| 福安市| 南川市| 盘锦市| 彭州市| 元谋县| 开鲁县| 夏津县| 蒙自县| 连江县| 娄底市| 保山市| 忻州市| 广灵县| 贺州市| 兴海县| 保德县| 旬阳县| 乌苏市| 科技| 侯马市| 柯坪县| 嵩明县| 香格里拉县| 珠海市| 宝清县| 鲁山县| 高密市| 合肥市| 福泉市|