25 lines
844 B
HTML
25 lines
844 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Image Slider Control</title>
|
||
|
<link rel="stylesheet" href="style.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="image-container" id="both-images">
|
||
|
<img src="image1.png" alt="Image 1" id="image1">
|
||
|
<img src="image2.png" alt="Image 2" id="image2">
|
||
|
</div>
|
||
|
<div class="slider-container">
|
||
|
<!-- Set the value to 0 if range is from -500 to 500 -->
|
||
|
<input type="range" id="upperSlider" min="-500" max="500" value="0">
|
||
|
</div>
|
||
|
<div class="slider-container">
|
||
|
<!-- Ensure lower slider starts at zero position -->
|
||
|
<input type="range" id="lowerSlider" min="-500" max="500" value="0">
|
||
|
</div>
|
||
|
<script src="script.js"></script>
|
||
|
</body>
|
||
|
</html>
|