Slick carousel with detached captions
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 - 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>'
})
Developer | Kenan Yusuf |
Username | KenanYusuf |
Uploaded | December 06, 2022 |
Rating | 3 |
Size | 3,150 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 |
Scrollable Navigation | 3,141 Kb |
Kyusuf.com layout | 3,467 Kb |
Slick carousel with detached captions | 3,150 Kb |
A Pen by Kenan Yusuf | 2,582 Kb |
Styling unvisited links | 2,816 Kb |
Expanding box and fading content | 3,418 Kb |
Card awaiting content | 4,012 Kb |
Scalable Text Stylus Mixin | 2,421 Kb |
Page layout experiment | 5,391 Kb |
Slick vs Flickity | 3,933 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 |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Simple Buttons | Haydenmills | 1,750 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
Flat iOS 7 Safari Icon | Rss | 3,332 Kb |
Konami Code Easter Egg | Teolitto | 3,051 Kb |
Tab Menus | Zephyr | 3,180 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!