Menu
Coddy logo textTech

カルーセルクラス

Coddyの「スライダー | フロントエンド・プロジェクト」コースのレッスン 15/23。

challenge icon

チャレンジ

簡単

wrapper クラスの中で、carousel クラスをターゲットにします:

1. displaygrid に設定します。

2. grid-auto-flowcolumn に設定します。

3. grid-auto-columncalc((100% / 3) - 12px) に設定します。

4. x 方向の overflow を auto に設定します。

5. scroll-snap-typex mandatory に設定します。

6. gap16px に設定します。

7. 任意の border radius を設定します。

8. scroll behavior を smooth に設定します。

9. scrollbar width を none に設定します。

自分で試してみよう

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

スライダー | フロントエンド・プロジェクトのすべてのレッスン