Skip to content

Commit 571cf6d

Browse files
committed
add example
1 parent 7d93ed8 commit 571cf6d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

examples/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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>

0 commit comments

Comments
 (0)