Slick carousel with detached captions - Figure Variant
How do I make an slick carousel with detached captions - figure variant?
What is a slick carousel with detached captions - figure variant? How do you make a slick carousel with detached captions - figure variant? This script and codes were developed by Kenan Yusuf on 06 December 2022, Tuesday.
Slick carousel with detached captions - Figure Variant - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slick carousel with detached captions - Figure Variant</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="figures"> <figure> <div class="slide">Figure 1</div> <figcaption>This is a caption for figure 1</figcaption> </figure> <figure> <div class="slide">Figure 2</div> <figcaption>This is a caption for figure 2</figcaption> </figure> <figure> <div class="slide">Figure 3</div> <figcaption>This is a caption for figure 3</figcaption> </figure> </div> <div class="controls"> <div class="captions"></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 - Figure Variant - 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;
}
figure { margin: 0;
}
figcaption { display: none;
}
.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 - Figure Variant - Script Codes JS Codes
var $figures = $('.figures') , $figcaption = $('figcaption') , $captions = $('.captions')
$figcaption.each(function() { var $caption = $(this).html() $captions.append('<div class="caption">' + $caption + '</div>')
})
$figures.slick({ asNavFor: '.captions', infinite: false, speed: 200, arrows: false
})
$captions.slick({ asNavFor: '.figures', 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,339 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 |
EU Referendum Ballot Paper | 4,023 Kb |
Expanding box and fading content | 3,418 Kb |
A Pen by Kenan Yusuf | 2,582 Kb |
Card awaiting content | 4,012 Kb |
Scrollable Navigation | 3,141 Kb |
Scalable Text Stylus Mixin | 2,421 Kb |
Slick carousel with detached captions | 3,150 Kb |
Styling visited links | 2,799 Kb |
Styling unvisited links | 2,816 Kb |
Page layout experiment | 5,391 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 |
Layout | X-gyba | 4,234 Kb |
Cool audio | Bigliam | 1,868 Kb |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Pure CSS candle light animation by One element | Ksksoft | 2,193 Kb |
TheCalendar.js | The-teacher | 6,330 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Funny menu | AxeLVaisper | 4,671 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 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!