Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html ng-app="MyModule">
<script src=""></script>
    <script src=""></script>
  <body ng-controller="MainCtrl">
    <i> ngAnimation test</i> <br/><br/>
    <button ng-click="add()">add</button>
    <button ng-click="remove()">remove</button>
    <div ng-repeat="p in people" ng-class="'p' +" class="item" >
      Name: {{}} <br />
      Age: {{p.age}}



.item {

  border: 1px solid #00ff00;

}, {
  -webkit-transition:1s linear all;
  transition:1s linear all;
} { height:0;overflow:hidden;}        /* starting animations for enter */ { height:30px; } /* terminal animations for enter */ { opacity:1; }        /* starting animations for leave */ { opacity:0 } /* terminal animations for leave */



                function MainCtrl ($scope, $animate) {
  var id = 10;
  var data = [
      id: 1,
      name: 'John',
      age: 15
      id: 2,
      name: 'John II',
      age: 20
      id: 3,
      name: 'Paul',
      age: 22
  $scope.people = data;

  $scope.add = function(){
    var newData = $scope.people.concat([{
      id: id,
      name: 'New User ' + id,
      age: id,
      somemore: id
    // try to create an absolute new array, not just push it. See, angularjs can handle it.

    $scope.people = newData;

  $scope.remove = function(){
    !$scope.$$phase && $scope.$digest();


var myApp = angular.module('MyModule', ['ngAnimate']);