Dragdealer slider
How do I make an dragdealer slider?
Fullscreen image slider using dragdealer.js. What is a dragdealer slider? How do you make a dragdealer slider? This script and codes were developed by Joseph on 21 November 2022, Monday.
Dragdealer slider - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>dragdealer slider</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="console"></div>
<div class="arrow" id="right-arrow">></div>
<div class="arrow" id="left-arrow"><</div>
<div id="image-carousel" class="dragdealer active"> <ul id="slides" class="handle" style="-webkit-perspective: 1000px; -webkit-backface-visibility: hidden; -webkit-transform: translateX(200px);"> <li class="slide img1" style="background-image: url('http://stuckincustoms.smugmug.com/Portfolio/i-KMjVHRd/0/X3/Andramada-X3.jpg');"> <div class="info"> <p class="title">Aston Martin DB4</p> <p class="description"><strong>1959</strong> — 3.7L, 240hp</p> </div> </li> <li class="slide img2" style="background-image:url(http://stuckincustoms.smugmug.com/Burning-Man/i-dd9xmfn/0/X3/The%20Steamy%20Car-X3.jpg);"> <div class="info"> <p class="title">Mercedes-Benz 300SL</p> <p class="description"><strong>1956</strong> — 2996cc, 212-222hp</p> </div> </li> <li class="slide img3" style="background-image:url(http://stuckincustoms.smugmug.com/Portfolio/i-KscS8CF/0/X3/Burning-Man-Day-1%20%281006%20of%201210%29-X3.jpg);"> <div class="info"> <p class="title">Jaguar E-Type</p> <p class="description"><strong>1966</strong> — 3.8L, 265bhp</p> </div> </li> <li class="slide img4" style="background-image:url(http://stuckincustoms.smugmug.com/Portfolio/i-jQcPqJb/0/X3/Burning-Man-Last-Day-Night%20%28151%20of%201120%29-X3.jpg);"> <div class="info"> <p class="title">Maserati A6</p> <p class="description"><strong>1950</strong> — 2L, 120bhp</p> </div> </li> <li class="slide img5" style="background-image:url(http://stuckincustoms.smugmug.com/Portfolio/i-JSxf5Nm/0/X3/Burning-Man-Day-6%20%28202%20of%201606%29-X3.jpg);"> <div class="info"> <p class="title">Maserati A6</p> <p class="description"><strong>1950</strong> — 2L, 120bhp</p> </div> </li> </ul> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://www.urallastories.org/js/dragdealer.js'></script> <script src="js/index.js"></script>
</body>
</html>
Dragdealer slider - Script Codes CSS Codes
html, body { width: 100%; height: 100%; margin: 0; padding: 0; font-family:courier; font-size:13px; color:tomato; }
/* Hide the scrollbar... */
body::-webkit-scrollbar { display: none; }
* { padding:0px; margin:0px; }
/* Image carousel */
#console { position:fixed; z-index:99; left:25px; top:25px; color:#ffffff; }
.arrow { cursor:pointer; position:fixed; z-index:99; top:50%; color:#fff; font-size:24px; }
#right-arrow { right:25px; }
#left-arrow { left:25px; }
#image-carousel { height: 100%; width:100%; border-radius: 0; overflow: hidden;
} #image-carousel .handle { width: 400%; height: 100%; border-radius: 0; } #image-carousel .handle .slide { float: left; position: relative; width: 25%; height: 100%; background-repeat: no-repeat; background-position: center center; background-size:cover; list-style:none; } #image-carousel .handle .slide .info { position: absolute; top: 15px; right: 15px; padding: 10px 15px; background: #fff; background: rgba(255, 255, 255, 0.5); } #image-carousel .handle .slide .info p { margin: 0; } #image-carousel .handle .slide .info .title { font-size: 24px; font-weight: bold; line-height: 30px; } #image-carousel .handle .slide .info .description { color: #333; font-size: 16px; line-height: 20px; }
Dragdealer slider - Script Codes JS Codes
$.global = new Object();
$.global.item = 1;
$.global.total = 0;
$.global.slider = 0;
$(document).ready(function() { var SlideCount = $('#slides li').length; var SliderWidth = SlideCount * 100; var SlideWidth = 100 / SlideCount; $.global.total = SlideCount; $('#image-carousel .handle').css('width',''+SliderWidth+'%'); $('#image-carousel .handle .slide').css('width',''+SlideWidth+'%'); DragIt(); $('#right-arrow').click(function() { var $currentstep = $.global.slider.getStep(); var $nextstep = parseInt($currentstep) + 1; $.global.slider.setStep($nextstep); }); $('#left-arrow').click(function() { var $currentstep = $.global.slider.getStep(); var $nextstep = parseInt($currentstep) - 1; $.global.slider.setStep($nextstep); }); });
function DragIt() { $.global.slider = new Dragdealer('image-carousel', { steps: $.global.total, speed: 0.2, loose: true, css3: true, top:0, bottom:0, left:0, right:0, requestAnimationFrame: true, callback: function(x, y) { $('#console').html(x);} }); }
Developer | Joseph |
Username | jibbon |
Uploaded | November 21, 2022 |
Rating | 3.5 |
Size | 3,117 Kb |
Views | 38,456 |
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 |
Css only parallax | 5,628 Kb |
Fluid full-width vimeo element | 2,242 Kb |
Fluid poster wall | 2,856 Kb |
Mousy canvas experiment | 2,076 Kb |
A Pen by Joseph | 1,826 Kb |
Large canvas mousemove experiment | 2,885 Kb |
NEW SPACE COLONY - safe | 2,150 Kb |
3d transform card flip | 2,276 Kb |
NEW SPACE COLONY | 2,681 Kb |
Bloody Simple Grid | 2,195 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 |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Automatic scroll | Skeurentjes | 4,042 Kb |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
Bootstrap example | Ssaakkaa | 2,716 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Zeichensatz | Moklick | 2,058 Kb |
Table Exercise | Fresco | 9,585 Kb |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 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!