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 |
Expanding box and fading content | 3,418 Kb |
Card awaiting content | 4,012 Kb |
EU Referendum Ballot Paper | 4,023 Kb |
Styling unvisited links | 2,816 Kb |
Slick vs Flickity | 3,933 Kb |
Slick carousel with detached captions - Figure Variant | 3,339 Kb |
Scalable Text Stylus Mixin | 2,421 Kb |
Material Weather Widget with Moment.js | 5,929 Kb |
Page layout experiment | 5,391 Kb |
A Pen by Kenan Yusuf | 2,582 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 |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Twinner Spinner II | Katydecorah | 2,974 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Video mute | Leon9208 | 2,131 Kb |
Sample Profile Screen | OurDailyBread | 5,375 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 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!