forked from joelambert/Flux-Slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.html
68 lines (58 loc) · 2.43 KB
/
testing.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Flux Slider Demo » Hardware accelerated image transitions using CSS3</title>
<!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" title="no title" charset="utf-8">
<!-- Use Zepto for best performance on WebKit based browser -->
<!-- <script src="js/zepto/zepto.js" type="text/javascript" charset="utf-8"></script> -->
<!-- Use jQuery for best compatibility with other CSS3 enabled browsers -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/flux.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
flux.slider.prototype.showImageBase64 = function(b64) {
this.stop();
this.image1.css({
'background-image': this.image2.css('background-image'),//'url("'+this.getImage(this.currentImageIndex).src+'")',
'z-index': 101
}).children().remove();
this.image2.css({
'background-image': 'url("'+b64.attr('src')+'")',
'z-index': 100
}).show();
this.transition();
}
flux.slider.prototype.setupImages = function() {
}
$(function(){
if(!flux.browser.supportsTransitions)
alert("Flux Slider requires a browser that supports CSS3 transitions");
window.f = new flux.slider('#slider', {
pagination: false,
autoplay: false
});
});
</script>
</head>
<body>
<section class="container">
<h1><span class="flux">Flux</span> <span class="slider">Slider</span></h1>
<h2>Hardware accelerated image transitions using CSS3.</h2>
<div id="slider">
<img src="img/avatar.jpg" alt="" />
</div>
<footer>
<p>Flux Slider © Copyright 2011 Joe Lambert. All Rights Reserved. Follow me on Twitter <a href="http://www.twitter.com/joelambert">@joelambert</a></p>
<img src="img/html5.png" alt="HTML5" width="35px" />
</footer>
<div style="display:none">
<img id="image1" src="img/ironman.jpg" alt="" />
<img id="image2" src="img/tron.jpg" alt="" />
<img id="image3" src="img/greenhornet.jpg" alt="" />
</div>
</section>
</body>
</html>