GithubHelp home page GithubHelp logo

Modifying data-transition about reveal-md HOT 12 CLOSED

webpro avatar webpro commented on May 28, 2024
Modifying data-transition

from reveal-md.

Comments (12)

webpro avatar webpro commented on May 28, 2024

That sounds like an issue you're having with reveal.js itself. Or, please provide more details (such as the HTML being rendered, what exactly is not working, etc.).

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

I typed in a present.md file:

---
<section data-transition="zoom" data-background="#FE642E">
Background Slides
</section>
---
<section data-background="#01DFD7" data-background-transition="convex" data-transition="fade">
Changing Background Transitions
</section>
---

Also had written the following in the reveal.json file:

{
    "controls": false,
    "progress": true, 
    "transition": "zoom",
    "backgroundTransition": "slide",
    "parallaxBackgroundImage": "sea.jpg",
    "parallaxBackgroundSize": "2100px 900px",
    "parallaxBackgroundHorizontal": 200,
        "parallaxBackgroundVertical": 50

}

When I run the reveal-md present.md then the slide transition (i.e. in the reveal.json) works not the convex one.

from reveal-md.

webpro avatar webpro commented on May 28, 2024

I think this is about reveal.js itself. reveal-md just passes the options to reveal.js (see {{{options}}} in https://github.com/webpro/reveal-md/blob/master/template/reveal.html).

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

I took the following code from the reveal.js and added the attribute data-transition="zoom" into the section tag. This (zoom effect on first slide) didn't work with reveal-md, but it worked fine on reveal.js.

<section data-transition="zoom">
<h1>Reveal.js</h1>
<h3>The HTML Presentation Framework</h3>
<p>
<small>Created by <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small>
</p>
</section>

Can you please help me with this?

from reveal-md.

webpro avatar webpro commented on May 28, 2024

Does any HTML inside your Markdown get rendered properly?

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Yes the above section works fine except the transition.

from reveal-md.

webpro avatar webpro commented on May 28, 2024

I just checked, and a nested <section> is generated from the Markdown (the slide separator + the custom HTML <section>). I guess reveal.js still picks up the background color, but does not override the transition per slide.

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Now, is there any hack that would make it work?

from reveal-md.

webpro avatar webpro commented on May 28, 2024

Not sure, you'd need to dig into the reveal.js codebase. I'm closing this for now.

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Can you please point me to a particular section to look for?
Thanks for the help.

from reveal-md.

webpro avatar webpro commented on May 28, 2024

https://github.com/hakimel/reveal.js#markdown & https://github.com/hakimel/reveal.js/blob/master/plugin/markdown/markdown.js

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Thank you 👍

from reveal-md.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.