PHOTO SLIDER
How do I make an photo slider?
Photo slider by jquery. What is a photo slider? How do you make a photo slider? This script and codes were developed by Vedat Sözen on 27 November 2022, Sunday.
PHOTO SLIDER - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>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=Bitter:700' 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="container">
<div id="button"><button>1</button><button>2</button><button>3</button><button>4</button></div>
<div id="header">PHOTO SLIDER</div>
<div id="photo"> <div id="photos"> <div id="photo1"><img src="http://background-download.com/background/nature-hd-london-night-view-wallpaper-37848.jpg"></div> <div id="photo2"><img src="http://www.fun54.com/wp-content/uploads/2011/09/jogging-track-night-view-with-buildings-view-background-nature-view-greenery-hd-wallpapers-1920-x-1200.jpg"></div> <div id="photo3"><img src="http://wallpaper-download.net/wallpapers/beach-wallpapers-beautiful-beach-view-wallpaper-35918.jpg"></div> <div id="photo4"><img src="http://www.hdwallpapersinn.com/wp-content/uploads/2014/09/house-hd-wallpapers-desktop.jpg"></div> </div>
</div>
</div>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>
PHOTO SLIDER - Script Codes CSS Codes
body { background:gold; margin:auto;}
#container {
margin:auto;
margin-top:20px;
height:530px;
width:500px;
}
#button {
height:30px;
width:500px;
margin:auto;
font-family: 'Bitter', serif;
font-size:30px;
color:white;
line-height:30px;
box-sizing:border-box;
text-align:center;
margin-bottom:5px;
}
#header {
height:100px;
width:500px;
margin:auto;
border:2px solid black;
line-height:200px;
font-family: 'Bitter', serif;
font-size:30px;
background:black;
color:white;
line-height:100px;
box-sizing:border-box;
text-align:center;
margin-bottom:5px;
}
#photo {
height:400px;
width:500px;
margin:auto;
box-sizing:border-box;
border:2px solid black;
overflow:hidden;
position:fixed;
}
#photos {
height:400px;
width:2500px;
margin:auto;
box-sizing:border-box;
transition:linear;
position:absolute;
}
#photo1,#photo2,#photo3,#photo4 {
height:400px;
width:500px;
margin:auto;
box-sizing:border-box;
float:left;
}
img { height:100%; width:100%;}
PHOTO SLIDER - Script Codes JS Codes
$(document).ready(function(){
$("button:nth-child(1)").click(function(){
$("#photos").animate({left:"0px"},1000);
});
$("button:nth-child(2)").click(function(){
$("#photos").animate({left:"-500px"},1000);
});
$("button:nth-child(3)").click(function(){
$("#photos").animate({left:"-1000px"},1000);
});
$("button:nth-child(4)").click(function(){
$("#photos").animate({left:"-1500px"},1000);
});
});
Developer | Vedat Sözen |
Username | vedatsozen |
Uploaded | November 27, 2022 |
Rating | 3 |
Size | 2,364 Kb |
Views | 12,144 |
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 |
SIMPLE BILLIARD GAME TRIAL | 2,303 Kb |
CHANGE BACKGROUND PHOTO WITH FORM | 2,389 Kb |
Drop Down Menu | 2,509 Kb |
LOADING ANIMATION | 1,974 Kb |
MATERIAL DESIGN BUTTON ANIMATION | 2,368 Kb |
MATERIAL DESIGN BUTTON ANIMATION | 2,270 Kb |
HOW TO CHANGE BACKGROUND IMAGE OF DIVS | 2,376 Kb |
SIMPLE PHOTO SLIDER | 2,114 Kb |
SIMPLE ANIMATION | 1,774 Kb |
SIMPLE FOOTBALL QUIZ .. | 2,467 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 |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Minimal Menu | Achudars | 3,430 Kb |
CSS Grid Test | Ajaykarwal | 2,377 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
A cube | KyleDavidE | 18,627 Kb |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
CSS Dynamic Width Square Div | Elleestcrimi | 2,861 Kb |
A Pen by boilzzz | Boilzzz | 2,761 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!