AngularJS Animations 무엇이 필요합니까?
AngularJS Animations
무엇이 필요합니까?
애니메이션을위한 응용 프로그램을 준비하려면 AngularJS Animate 라이브러리를 포함해야합니다.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.js"></script>
그런 다음 ngAnimate응용 프로그램 의 모듈을 참조해야합니다 .
<body ng-app="ngAnimate">
또는 응용 프로그램에 이름 ngAnimate이 있으면 응용 프로그램 모듈에 종속성으로 추가 합니다.
예
<body ng-app="myApp">
<h1>Hide the DIV: <input type="checkbox" ng-model="myCheck"></h1>
<div ng-hide="myCheck"></div>
<script>
var app = angular.module('myApp', ['ngAnimate']);
</script>
[전체소스]
<!DOCTYPE html>
<html>
<style>
div {
transition: all linear 0.5s;
background-color: lightblue;
height: 100px;
width: 100%;
position: relative;
top: 0;
left: 0;
}
.ng-hide {
height: 0;
width: 0;
background-color: transparent;
top:-200px;
left: 200px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.js"></script>
<body ng-app="myApp">
<h1>Hide the DIV: <input type="checkbox" ng-model="myCheck"></h1>
<div ng-hide="myCheck"></div>
<script>
var app = angular.module('myApp', ['ngAnimate']);
</script>
</body>
</html>
무엇이 필요합니까?
애니메이션을위한 응용 프로그램을 준비하려면 AngularJS Animate 라이브러리를 포함해야합니다.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.js"></script>
그런 다음 ngAnimate응용 프로그램 의 모듈을 참조해야합니다 .
<body ng-app="ngAnimate">
또는 응용 프로그램에 이름 ngAnimate이 있으면 응용 프로그램 모듈에 종속성으로 추가 합니다.
예
<body ng-app="myApp">
<h1>Hide the DIV: <input type="checkbox" ng-model="myCheck"></h1>
<div ng-hide="myCheck"></div>
<script>
var app = angular.module('myApp', ['ngAnimate']);
</script>
[전체소스]
<!DOCTYPE html>
<html>
<style>
div {
transition: all linear 0.5s;
background-color: lightblue;
height: 100px;
width: 100%;
position: relative;
top: 0;
left: 0;
}
.ng-hide {
height: 0;
width: 0;
background-color: transparent;
top:-200px;
left: 200px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.js"></script>
<body ng-app="myApp">
<h1>Hide the DIV: <input type="checkbox" ng-model="myCheck"></h1>
<div ng-hide="myCheck"></div>
<script>
var app = angular.module('myApp', ['ngAnimate']);
</script>
</body>
</html>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 148 | AngularJS | 8년 전 | 1672 | ||
| 147 | AngularJS | 8년 전 | 1086 | ||
| 146 | AngularJS | 8년 전 | 1272 | ||
| 145 | AngularJS | 8년 전 | 1377 | ||
| 144 | AngularJS | 8년 전 | 1168 | ||
| 143 | AngularJS | 8년 전 | 1215 | ||
| 142 | AngularJS | 8년 전 | 1183 | ||
| 141 | AngularJS | 8년 전 | 1344 | ||
| 140 | AngularJS | 8년 전 | 1208 | ||
| 139 | AngularJS | 8년 전 | 1457 | ||
| 138 | AngularJS | 8년 전 | 1164 | ||
| 137 | AngularJS | 8년 전 | 1085 | ||
| 136 | AngularJS | 8년 전 | 1174 | ||
| 135 | AngularJS | 8년 전 | 1691 | ||
| 134 | AngularJS | 8년 전 | 1397 | ||
| 133 | AngularJS | 8년 전 | 1487 | ||
| 132 | AngularJS | 8년 전 | 1108 | ||
| 131 | AngularJS | 8년 전 | 1382 | ||
| 130 | AngularJS | 8년 전 | 1475 | ||
| 129 | AngularJS | 8년 전 | 1453 | ||
| 128 | AngularJS | 8년 전 | 2080 | ||
| 127 | AngularJS | 8년 전 | 1506 | ||
| 126 | jQuery Mobile | 8년 전 | 2277 | ||
| 125 | jQuery Mobile | 8년 전 | 2032 | ||
| 124 | jQuery Mobile | 8년 전 | 1894 | ||
| 123 | jQuery Mobile | 8년 전 | 1829 | ||
| 122 | jQuery Mobile | 8년 전 | 1870 | ||
| 121 | jQuery Mobile | 8년 전 | 2072 | ||
| 120 | jQuery Mobile | 8년 전 | 1608 | ||
| 119 | jQuery Mobile | 8년 전 | 1688 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기