wallop
Version:
wallop is a minimal 4kb library for showing & hiding things
47 lines (36 loc) • 1.17 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Wallop</title>
<meta name="viewport" content="initial-scale=1, user-scalable=no">
<link rel="stylesheet" href="css/example.css">
<link rel="stylesheet" href="../css/wallop.css">
<link rel="stylesheet" href="../css/wallop--fade.css">
</head>
<body>
<div class="Container">
<h1>Wallop Examples</h1>
<h2>No Carousel</h2>
<!-- SLIDER STARTS -->
<div class="Wallop">
<div class="Wallop-item"><img src="imgs/1.jpg"></div>
<div class="Wallop-item"><img src="imgs/2.jpg"></div>
<div class="Wallop-item"><img src="imgs/3.jpg"></div>
<div class="Wallop-item"><img src="imgs/4.jpg"></div>
<div class="Wallop-item"><img src="imgs/5.jpg"></div>
<button class="Wallop-buttonPrevious" disabled="true">Previous</button>
<button class="Wallop-buttonNext">Next</button>
</div>
<!-- SLIDER ENDS -->
</div>
<script src="../js/Wallop.js"></script>
<script>
// New instance of Wallop
var slider = document.querySelector('.Wallop');
new Wallop(slider, {
carousel: false
});
</script>
</body>
</html>