SIMPLE PHOTO SLIDER
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 - 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);
});
});
Developer | Vedat Sözen |
Username | vedatsozen |
Uploaded | November 27, 2022 |
Rating | 3 |
Size | 2,391 Kb |
Views | 8,096 |
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!
Name | Size |
PHOTO SLIDER | 2,364 Kb |
LOADING ANIMATION | 1,974 Kb |
HOW TO CHANGE BACKGROUND IMAGE OF DIVS | 2,376 Kb |
Drop Down Menu | 2,509 Kb |
SIMPLE PROFILE PAGE by JAVASCRIPT | 2,050 Kb |
CLICKABLE MENU .. | 2,592 Kb |
SIMPLE FOOTBALL QUIZ .. | 2,467 Kb |
CHANGE BACKGROUND PHOTO WITH FORM | 2,389 Kb |
SIMPLE NICE ANIMATED BUTTON | 1,843 Kb |
SIMPLE BILLIARD GAME TRIAL | 2,303 Kb |
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!
Name | Username | Size |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
Parallax.js | Zmeeey5 | 2,330 Kb |
Another brick in the wall | Fivera | 1,955 Kb |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Loading Bar | Jaradlight | 2,333 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!