- Learning AngularJS Animations
- Richard Keller
- 189字
- 2021-08-05 17:29:45
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "First we created an animation with JavaScript without requestFrameRate
."
A block of code is set as follows:
var app = angular.module('myApp', ['ngAnimate']) .animation(".firstJsAnimation", firstJsAnimation);
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<body> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular-animate.min.js"></script> <script> var app = angular.module('myApp', ['ngAnimate']); </script> </body>
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "For this sample, we have a Toggle fade button that changes the ngShow
model value, so we can see what happens when the element fades in and fades out from the DOM."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.