Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying AngularJS Web Application Development Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
AngularJS Web Application Development Blueprints

AngularJS Web Application Development Blueprints

By : Vinci J Rufus
4.3 (7)
close
close
AngularJS Web Application Development Blueprints

AngularJS Web Application Development Blueprints

4.3 (7)
By: Vinci J Rufus

Overview of this book

If you are a web application developer interested in using AngularJS for a real-life project, then this book is for you. As a prerequisite, knowledge of JavaScript and HTML is expected, and a working knowledge of AngularJS is preferred.
Table of Contents (12 chapters)
close
close
11
Index

Adding page transitions using ngAnimate


Right now, the pages change abruptly when swiped upon; we would ideally like pages to slide in, to give it a more pleasant feel.

We will make use of the ngAnimate module to achieve our page transitions; it has been completely rewritten for Angular 1.2.x branches. It provides CSS3 transition and keyframe animation support for various AngularJS directives and controls.

Currently, the following directives support animations for enter and exit events:

  • ngView

  • ngRepeat

  • ngInclude

  • ngIf

  • ngSwitch

  • ngClass

  • ngShow

  • ngHide

The way ngAnimate works is it simply adds ng-enter and ng-leave CSS classes to the directive.

We are then required to write our own CSS3 transition effects for these classes. Let's see how to go about doing this.

Loading the ngAnimate module

Like ngTouch, even ngAnimate doesn't come by default with AngularJS, and it needs to be installed and included separately. First, run the following command in the terminal:

bower install angular-animate -...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY