SIMPLE PHOTO SLIDER

Developer
Size
2,391 Kb
Views
8,096

How do I make an simple photo slider?

I made a simple photo slider with three photos .. When you click a button, container slider div slides some pixels that you want ... What is a simple photo slider? How do you make a simple photo slider? This script and codes were developed by Vedat Sözen on 27 November 2022, Sunday.

SIMPLE PHOTO SLIDER Previews

SIMPLE PHOTO SLIDER - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SIMPLE PHOTO SLIDER </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head>
<title></title>
<meta charset="utf-8">
<link rel="stylesheet" href="stil.css">
<link href='https://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.min.js"></script>
<script src="https://www.bitstorm.org/jquery/color-animation/jquery.animate-colors-min.js"></script>
<script src="stil.js"></script>
</head>
<body>
<div id="button">
<button class="home">FIRST PHOTO</button>
<button class="whatwedo">SECOND PHOTO</button>
<button class="contact">THIRD PHOTO</button>
</div>
<div id="container">
<div id="pages">
<div id="page1"><img src="http://www.hdnewwallpapers.com/wp-content/uploads/2014/10/Beautiful-Sea-View-HD-Wallpapers-free-Download-2.jpg"></div>
<div id="page2"><img src="http://extrawallpaper.com/wp-content/uploads/2015/02/Nature-Full-HD-Wallpaper-national-geographic-free.jpg"></div>
<div id="page3"><img src="http://www.hdwallpaperscool.com/wp-content/uploads/2015/01/mountain-bike-view-wide-hd-wallpaper-download-mountain-biking-images-free1.jpeg"></div>
</div>
</div>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>

SIMPLE PHOTO SLIDER - Script Codes CSS Codes

body { margin:auto 0; box-sizing:border-box;}
#button {
margin:auto;
position:fixed;
top:0;
left:0;
height:100px;
width:100%;
text-align:center;
}
button { background:black; color:white; padding:10px; border:none;}
button:hover { cursor:pointer; background:white; color:black;}
#container {
box-sizing:border-box;
height:620px;
width:100%;
overflow:hidden;
}
#pages {
height:1870px;
width:100%;
margin:auto;
position:absolute;
z-index:-1;
}
#page1, #page2,#page3 {
height:620px;
width:100%;
}
#page1 { background:lime;}
#page2 { background:lightgreen;}
#page3 { background:skyblue; height:650px;}
img { height:100%; width:100%;}

SIMPLE PHOTO SLIDER - Script Codes JS Codes

$(document).ready(function(){
$("button.home").click(function(){
$("#pages").animate({top:"0px"},1000);
});
$("button.whatwedo").click(function(){
$("#pages").animate({top:"-620px"},1000);
});
$("button.contact").click(function(){
$("#pages").animate({top:"-1240px"},1000);
});
});
SIMPLE PHOTO SLIDER - Script Codes
SIMPLE PHOTO SLIDER - Script Codes
Home Page Home
Developer Vedat Sözen
Username vedatsozen
Uploaded November 27, 2022
Rating 3
Size 2,391 Kb
Views 8,096
Do you need developer help for SIMPLE PHOTO SLIDER?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Vedat Sözen (vedatsozen) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!