Slick carousel with detached captions

Developer
Size
3,150 Kb
Views
8,096

How do I make an slick carousel with detached captions?

What is a slick carousel with detached captions? How do you make a slick carousel with detached captions? This script and codes were developed by Kenan Yusuf on 06 December 2022, Tuesday.

Slick carousel with detached captions Previews

Slick carousel with detached captions - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slick carousel with detached captions</title> <link href='https://fonts.googleapis.com/css?family=Alegreya+Sans:300,400|Source+Sans+Pro:400,300' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://cdn.jsdelivr.net/jquery.slick/1.5.9/slick.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="slider"> <div class="slides"> <div class="slide">Slide 1</div> <div class="slide">Slide 2</div> <div class="slide">Slide 3</div> </div> <div class="controls"> <div class="captions"> <div class="caption">This is a caption for slide 1</div> <div class="caption">This is a caption for slide 2</div> <div class="caption">This is a caption for slide 3</div> </div> <div class="pagination"></div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdn.jsdelivr.net/jquery.slick/1.5.9/slick.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Slick carousel with detached captions - Script Codes CSS Codes

* { box-sizing: border-box;
}
html,
body { height: 100%;
}
body { width: 100%; height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; background: #e6e6e6; font-family: 'Source Sans Pro', sans-serif; padding: 10px;
}
.slider { width: 100%; max-width: 700px;
}
.slides { background: #ccc;
}
.slide { display: flex !important; justify-content: center; align-items: center; background: #fff; height: 350px; outline: 0 !important; color: #ccc; font-size: 40px;
}
.controls { display: flex; width: 100%;
}
.captions { flex: 1; width: 100px; padding: 10px; margin-top: 2px; color: #7b7b7b; background: #fff;
}
.caption { outline: 0 !important;
}
.pagination { display: flex; margin-top: 2px;
}
.pagination__button { cursor: pointer; display: flex; justify-content: center; align-items: center; color: #ccc; background: #fff; width: 40px; height: 40px; margin-left: 2px;
}
.pagination__button:hover { color: #fff; background: #2aa1c0;
}
.pagination__button.slick-disabled { cursor: not-allowed; background: #ccc; color: #fff;
}

Slick carousel with detached captions - Script Codes JS Codes

$(".slides").slick({ asNavFor: '.captions', infinite: false, speed: 200, arrows: false
})
$(".captions").slick({ asNavFor: '.slides', infinite: false, speed: 200, fade: true, appendArrows: $('.pagination'), prevArrow: '<div class="pagination__button"><i class="material-icons">keyboard_arrow_left</i></div>', nextArrow: '<div class="pagination__button"><i class="material-icons">keyboard_arrow_right</i></div>'
})
Slick carousel with detached captions - Script Codes
Slick carousel with detached captions - Script Codes
Home Page Home
Developer Kenan Yusuf
Username KenanYusuf
Uploaded December 06, 2022
Rating 3
Size 3,150 Kb
Views 8,096
Do you need developer help for Slick carousel with detached captions?

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!

Kenan Yusuf (KenanYusuf) Script Codes
Create amazing love letters 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!