https://github.com/benbowes/angularjs-imagepreloader-directive
https://github.com/benbowes/angularjs-imagepreloader-directive
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/benbowes/angularjs-imagepreloader-directive
- Owner: benbowes
- Created: 2015-04-14T12:25:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-14T12:50:16.000Z (over 11 years ago)
- Last Synced: 2024-10-05T14:22:51.769Z (almost 2 years ago)
- Language: HTML
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularJS Image Preloader Directive
Add an attribute 'preloadimg' to the img tag to make it begin transparent, then fade in when loaded
e.g. <img ng-src="image.jpg" preloadimg>
View here on Plunker: http://plnkr.co/edit/aJNaeFvSCfBBrOuzlGKF