FsReveal icon indicating copy to clipboard operation
FsReveal copied to clipboard

add support for fragmented slides.

Open isaacabraham opened this issue 10 years ago • 14 comments

isaacabraham avatar Jan 29 '15 16:01 isaacabraham

Can you please give more details?

forki avatar Jan 29 '15 16:01 forki

http://lab.hakim.se/reveal-js/#/fragments

isaacabraham avatar Jan 29 '15 16:01 isaacabraham

maybe not ideal, but if you're using markdown you can input the html directly

<section>
  <p class="fragment roll-in">Foo</p>
  <p class="fragment grow">Bar</p>
</section>

reidev275 avatar Feb 21 '15 15:02 reidev275

Please propose a markdown syntax for:

<section>
    <section id="fragments">
        <h2>Fragments</h2>
        <p>Hit the next arrow...</p>
        <p class="fragment">... to step through ...</p>
        <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>

        <aside class="notes">
            This slide has fragments which are also stepped through in the notes window.
        </aside>
    </section>
    <section>
        <h2>Fragment Styles</h2>
        <p>There's different types of fragments, like:</p>
        <p class="fragment grow">grow</p>
        <p class="fragment shrink">shrink</p>
        <p class="fragment roll-in">roll-in</p>
        <p class="fragment fade-out">fade-out</p>
        <p class="fragment current-visible">current-visible</p>
        <p class="fragment highlight-red">highlight-red</p>
        <p class="fragment highlight-blue">highlight-blue</p>
    </section>
</section>

forki avatar Mar 02 '15 07:03 forki

ping.

we still need an idea for the syntax.

forki avatar Mar 22 '15 15:03 forki

Could we do something similar to what reveal.js does?

I am thinking about something like this:

## Fragment Styles

There's different types of fragments, like:

grow <!-- .element: class="fragment grow" -->

shrink <!-- .element: class="fragment shrink" -->

kimsk avatar Mar 25 '15 06:03 kimsk

The issue seems to be, "how do we add html attribute syntax to markdown?"

While I think it's probably as easy to just write the html (same issue with all other approaches of adding attributes that I've seen), I think @kimsk 's idea to continue the syntax of reveal.js would keep the two projects in sync which would probably have more benefits than rolling anything custom unless a really clean syntax is proposed.

reidev275 avatar Mar 25 '15 14:03 reidev275

Probably a dumb question, but here goes..., I have what I think is a working example but I'm not sure how to take the code I have in my branch and use it to actually build a site from markdown. How do you all do it?

reidev275 avatar Apr 02 '15 18:04 reidev275

You mean building slides? Did you clone the master branch and run the build.cmd? It should open a browser. On Apr 2, 2015 8:30 PM, "reidev275" [email protected] wrote:

Probably a dumb question, but here goes..., I have what I think is a working example but I'm not sure how to take the code I have in my branch and use it to actually build a site from markdown. How do you all do it?

— Reply to this email directly or view it on GitHub https://github.com/fsprojects/FsReveal/issues/36#issuecomment-89002882.

forki avatar Apr 02 '15 19:04 forki

Have you looked at https://github.com/hakimel/reveal.js/pull/677?

They included a reference too: https://github.com/VonC/reveal.js/blob/classes_in_markdown/test/test-element-attributes-markdown.html

## Slide 1.1 {_class="fragment fade-out" data-fragment-index="1"}

                        --

                        ## Slide 1.2 {_class="fragment shrink"}

                        Paragraph 1 {_class="fragment grow"}

                        Paragraph 2 {_class="fragment grow"}

                        - list item 1  {_class="fragment roll-in"}
                        - list item 2  {_class="fragment roll-in"}
                        - list item 3  {_class="fragment roll-in"}


                        ---

                        ## Slide 2


                        Paragraph 1.2  
                        multi-line {_class="fragment highlight-red"}

                        Paragraph 2.2 {_class="fragment highlight-red"}

                        Paragraph 2.3 {_class="fragment highlight-red"}

                        Paragraph 2.4 {_class="fragment highlight-red"}

                        - list item 1  {_class="fragment highlight-green"}
                        - list item 2  {_class="fragment highlight-green"}
                        - list item 3  {_class="fragment highlight-green"}
                        - list item 4  {_class="fragment highlight-green"}
                        - list item 5  {_class="fragment highlight-green"}

Test

![Example Picture{_class="reveal stretch"}](red-curtain-50x50.jpg)

CumpsD avatar Apr 02 '15 19:04 CumpsD

@forki Indeed, from the master branch I can run build.cmd and it opens the browser, but from the master branch I'm not sure how to edit the FsReveal source. I branched off of develop to make code changes. Perhaps that's the source of my error?

reidev275 avatar Apr 02 '15 22:04 reidev275

@reidev275 Are you talking about editing FsReveal code (FsReveal.dll)?

kimsk avatar Apr 02 '15 22:04 kimsk

Yes, mapping paragraph literals with the pattern you mentioned into literals with html expected from reveal

Sent from my iPhone

On Apr 2, 2015, at 6:17 PM, Karlkim Suwamongkol [email protected] wrote:

Are you talking about editing FsReveal code (FsReveal.dll)?

— Reply to this email directly or view it on GitHub.

reidev275 avatar Apr 02 '15 23:04 reidev275

Ah now I get the issue. You want to test your custom built fsreveal.dll!?

There are two simple ways:

  1. create an unittest (there are samples) or 2) clone master branch into a different folder and set the build output of the develop branch to overwrite the fsreveal.dll in the master branch folder. On Apr 3, 2015 1:15 AM, "reidev275" [email protected] wrote:

Yes, mapping paragraph literals with the pattern you mentioned into literals with html expected from reveal

Sent from my iPhone

On Apr 2, 2015, at 6:17 PM, Karlkim Suwamongkol < [email protected]> wrote:

Are you talking about editing FsReveal code (FsReveal.dll)?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/fsprojects/FsReveal/issues/36#issuecomment-89074974.

forki avatar Apr 06 '15 15:04 forki