reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Nested fragment not working

Open StephanoGeorge opened this issue 2 years ago • 0 comments

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.css">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.min.js"></script>
</head>
<body>
<div class="reveal" style="font-size: 2em">
    <div class="slides">
        <section style="text-align: left; line-height: 3em">
            <h1>Title</h1>
            <div class="r-stack">
                <div class="fragment fade-in-then-out">
                    <h1>Item 1</h1>
                </div>
                <div class="fragment fade-in-then-out">
                    <h1>Item 2</h1>
                    <h1 class="fragment">Item 2.1</h1>
                    <h1 class="fragment">Item 2.2</h1>
                    <h1 class="fragment">Item 2.3</h1>
                </div>
                <div class="fragment fade-in-then-out">
                    <h1>Item 3</h1>
                </div>
            </div>
        </section>
    </div>
</div>
<script>
    Reveal.initialize({});
</script>
</body>
</html>

Expected:

Item 1
---
Item 2
---
Item 2
Item 2.1
---
Item 2
Item 2.1
Item 2.2
---
Item 2
Item 2.1
Item 2.2
Item 2.3
---
Item 3

Did I write it wrong? Thanks!

StephanoGeorge avatar May 27 '22 08:05 StephanoGeorge