forked from imgix/imgix.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery-simple-example.html
31 lines (23 loc) · 1.01 KB
/
jquery-simple-example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=yes">
</head>
<body>
<section class="container">
<img src="http://jackangers.imgix.net/chester.png" class="gallery" id="chester">
<img src="http://jackangers.imgix.net/chester.png" class="gallery" id="chester2">
<div class="gallery" style="background-image: url(http://assets.imgix.net/examples/butterfly.jpg?crop=faces&fit=crop&h=640&w=640);height:500px;width:500px;">
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://www.imgix.com/libraries/imgix.js" type="text/javascript"></script>
<script src="http://www.imgix.com/static/js/imgix.jquery.js"></script>
<script type="text/javascript">
jQuery(function() {
$('.gallery').imgix().setParams({txt: 'Copyright Chester 2014', txtclr: 'fff', txtsize:20, txtalign: 'center,middle'});
})
</script>
</body>
</html>