jquery - How to chain the css3 transition in agularjs -


here scenario,

when user click on button, need increase height of div once div reached height,

from child of div each of span need have opacity:1, sequence (with delay between spans)

how this?

here code , demo:

var myapp = angular.module('myapp', []) myapp.controller('main', function($scope){     $scope.animate = false;     $scope.animit = function () {         $scope.animate = !$scope.animate;     } })  <html> <head>  </head> <body ng-app="myapp">  <div ng-controller="main">     <div  ng-class="{'active' : animate}">         <span>testing1</span>         <span>testing2</span>         <span>testing3</span>     </div>     <button ng-click="animit()">click me</button> </div> </body> </html> 

jsfiddle

update step of required:

  1. make full height div
  2. div reach full height , start
  3. first span fade in , that's done
  4. next span fade in so..
  5. when user clicks again remove active div
  6. when div reducing height, accodingly fade out span reverse order.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -