Carousel Example - Materialize Typing CST Test
Loading…
Carousel Example — Materialize Code
Shows an image carousel using Materialize Carousel component.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet">
<title>Materialize Carousel</title>
</head>
<body class="container">
<div class="carousel">
<a class="carousel-item" href="#one!"><img src="https://via.placeholder.com/250"></a>
<a class="carousel-item" href="#two!"><img src="https://via.placeholder.com/250"></a>
<a class="carousel-item" href="#three!"><img src="https://via.placeholder.com/250"></a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.carousel');
M.Carousel.init(elems);
});
</script>
</body>
</html>Materialize Language Guide
Materialize is a modern, responsive front-end CSS framework based on Google's Material Design guidelines. It provides prebuilt components, responsive grids, and JavaScript plugins to build web interfaces quickly.
Primary Use Cases
- ▸Responsive websites and web apps
- ▸Landing pages with Material Design look
- ▸Admin dashboards
- ▸Rapid prototyping
- ▸Projects needing ready-made JS components
Notable Features
- ▸Material Design-compliant UI components
- ▸12-column responsive grid system
- ▸Pre-styled elements (buttons, forms, navbars, cards)
- ▸JavaScript plugins for interactive components
- ▸Sass-based customization
Origin & Creator
Developed by a community-led initiative inspired by Google’s Material Design, first released in 2014.
Industrial Note
Materialize is popular in educational projects, prototyping, and apps where a Material Design aesthetic is preferred, including dashboards and web apps.