File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ < html lang ="en ">
2+ < head >
3+ < meta charset ="UTF-8 ">
4+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
6+ < title > Lazy Image Example</ title >
7+ < script src ="https://unpkg.com/vue "> </ script >
8+ < script src ="/dist/vue-lazy-image.min.js "> </ script >
9+ < style >
10+ .top {
11+ width : 100% ;
12+ height : 100vh ;
13+ }
14+ </ style >
15+ </ head >
16+ < body >
17+ < main id ="sa ">
18+ < div class ="top ">
19+ Scroll Down
20+ </ div >
21+ < lazy-image src ="https://durian.blender.org/wp-content/uploads/2009/10/sintel-wallpaper-dragon.jpg " placeholder ="/dist/images/placeholder.svg " width ="100% " alt ="My Imagea Title "/>
22+ </ main >
23+ < script >
24+ Vue . use ( LazyImage ) ;
25+
26+ new Vue ( {
27+ el : '#sa' ,
28+ } ) ;
29+ </ script >
30+ </ body >
31+ </ html >
You can’t perform that action at this time.
0 commit comments