AngularJS Animated Todo List

Size
2,975 Kb
Views
4,048

How do I make an angularjs animated todo list?

Mobile ready todo list with animations.. What is a angularjs animated todo list? How do you make a angularjs animated todo list? This script and codes were developed by Edward R Haase on 13 January 2023, Friday.

AngularJS Animated Todo List Previews

AngularJS Animated Todo List - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>AngularJS Animated Todo List</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
<meta name='viewport' content='width=device-width, initial-scale=1'></meta> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://cdnjs.cloudflare.com/ajax/libs/animate.css/2.0/animate.min.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container" ng-cloak="ng-cloak" ng-app="app" ng-controller="MyCtrl"> <H1>Animate.css + AngularJS</H1> <form ng-submit="addItem(newItem)"> <div class="form-group"> <input class="form-control" required="required" type="text" ng-model="newItem" placeholder="New todo item" focus="focus"/> </div> </form> <div class="well" id="list"> <div class="row todo-item" ng-repeat="item in items track by item.id" ng-swipe-right="removeItem($index)"><span class="col-xs-6">{{item.text}}</span><span class="col-xs-3 close" ng-click="removeItem($index)">&times; </span></div> </div> <button class="btn btn-primary btn-block" ng-click="clearAll()">Remove all items</button>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-touch.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-animate.js'></script> <script src="js/index.js"></script>
</body>
</html>

AngularJS Animated Todo List - Script Codes CSS Codes

.todo-item.ng-enter { -webkit-animation: fadeInLeft 1s; -moz-animation: fadeInLeft 1s; -ms-animation: fadeInLeft 1s; animation: fadeInLeft 1s;
}
.todo-item.ng-leave { -webkit-animation: fadeOutRight 1s; -moz-animation: fadeOutRight 1s; -ms-animation: fadeOutRight 1s; animation: fadeOutRight 1s;
}
[ng\:cloak], [ng-cloak], .ng-cloak { display: none !important;
}

AngularJS Animated Todo List - Script Codes JS Codes

var app = angular.module('app', ['ngTouch','ngAnimate']);
app.controller('MyCtrl', ['$scope', function($scope) { angular.extend($scope, { counter: 2, items: [ {id:0,text:'first'}, {id:1,text:'second'} ], addItem: function(item) { $scope.items.push({ id:$scope.counter++, text:item }); }, removeItem: function(index) { $scope.items.splice(index, 1); }, clearAll: function() { $scope.items = [] ; } });
}]);
AngularJS Animated Todo List - Script Codes
AngularJS Animated Todo List - Script Codes
Home Page Home
Developer Edward R Haase
Username ehaase
Uploaded January 13, 2023
Rating 3
Size 2,975 Kb
Views 4,048
Do you need developer help for AngularJS Animated Todo List?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Edward R Haase (ehaase) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!