I recently started using Bootstrap 4 and was exploring Flickity just a week ago. Now, I am attempting to integrate Flickity with my Bootstrap 4 by referencing the Bootstrap 4 examples and utilizing the carousel. However, when I added Flickity to the built-in carousel, the layout became disarranged and misaligned.
I want to maintain the existing designs of the Bootstrap 4 example carousel while adding Flickity for touch, responsiveness, and flickable carousels. Below are the codes I used:
/* CUSTOM CSS CODE HERE */
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
<link href="https://unpkg.com/flickity@2/dist/flickity.min.css" rel="stylesheet" />
<nav class="navbar navbar-toggleable-md navbar-inverse fixed-top bg-inverse">
/* NAVIGATION BAR HTML HERE */
</nav>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
/* CAROUSEL HTML CONTENT HERE */
</div>
<!-- /.container -->