Fetching contributors…
Cannot retrieve contributors at this time
68 lines (58 sloc) 2.43 KB
<!DOCTYPE html>
<meta charset=utf-8 />
<title>Flux Slider Demo &#0187; Hardware accelerated image transitions using CSS3</title>
<!--[if lte IE 8]>
<script src=""></script>
<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="" 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) {
'background-image': this.image2.css('background-image'),//'url("'+this.getImage(this.currentImageIndex).src+'")',
'z-index': 101
'background-image': 'url("'+b64.attr('src')+'")',
'z-index': 100
flux.slider.prototype.setupImages = function() {
alert("Flux Slider requires a browser that supports CSS3 transitions");
window.f = new flux.slider('#slider', {
pagination: false,
autoplay: false
<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="" />
<p>Flux Slider &copy; Copyright 2011 Joe Lambert. All Rights Reserved. Follow me on Twitter <a href="">@joelambert</a></p>
<img src="img/html5.png" alt="HTML5" width="35px" />
<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="" />