1
我經歷以下鏈接..NG-像表面上看起來可能不工作
AngularJS Module to make images appear with transition as they load.
我用它在我的應用程序,但沒有得到變換方式和動畫效果
HTML:
<div ng-app="myApp">
<div ng-controller="myCtrl">
<img class="img1" src="https://newevolutiondesigns.com/images/freebies/tropical-beach-background-8.jpg" ng-image-appear responsive transition-duration="1s" animation="fadeInUp" animation-duration="1s" easing="ease-out" />
</div>
</div>
Angular:
var myApp = angular.module('myApp', ['ngImageAppear']);
myApp.controller('myCtrl', ['$scope', function($scope) {
}]);
CSS:
body {
background-color: #aaa;
}
.img1 {
width: 60%;
height: auto;
}
.img2 {
width: 70px;
height: auto;
}
.img3 {
width: 450px;
height: auto;
}
.loader-class {
background-color: rgba(255, 255, 255, .65);
}
.placeholder-class {
background-size: contain;
}
感謝您的答覆......我重視它在指數file..still沒有影響 –
你在控制檯中看到任何錯誤嗎? – Sajeetharan
嗨..問題解決了......依賴沒有添加到app.js –