ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize Carousel Full Width
Source Code
<!DOCTYPE html> <html lang="en"> <head> <title>Materialize CSS Full Width Carousel</title> <meta name="viewport" content="width = device-width, initial-scale = 1" /> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> <style type="text/css"> h1{ font-size: 30px; } </style> </head> <body> <h1 class="center-align">Materialize CSS Full Width Carousel</h1> <div class="carousel carousel-slider grey lighten-5"> <a class="carousel-item" href="#"> <img src="../code-support/images/slider/bird.jpg" alt="Bird" /> </a> <a class="carousel-item" href="#"> <img src="../code-support/images/slider/lily.jpg" alt="Silver Lily" /> </a> <a class="carousel-item" href="#"> <img src="../code-support/images/slider/rose.jpg" alt="flower" /> </a> <a class="carousel-item" href="#"> <img src="../code-support/images/slider/water-lily.jpg" alt="Water Lily"/> </a> <a class="carousel-item" href="#"> <img src="../code-support/images/slider/rose-flower.jpg" alt="Rose" /> </a> </div> <script type="text/javascript"> $(".carousel.carousel-slider").carousel({ fullWidth: true, }); </script> </body> </html>
Output :
Running