Giter Site home page Giter Site logo

Code zooming transitions about mdx-deck HOT 11 CLOSED

jxnblk avatar jxnblk commented on May 17, 2024 3
Code zooming transitions

from mdx-deck.

Comments (11)

jxnblk avatar jxnblk commented on May 17, 2024 7

Probably related to #5; I think the library you mention might be https://github.com/jamiebuilds/spectacle-code-slide which I’d love to support in this library, but I haven’t spent time looking at how to make spectacle components work yet

from mdx-deck.

pomber avatar pomber commented on May 17, 2024 6

Anyone wants to test it? It's here https://github.com/pomber/code-surfer

from mdx-deck.

pomber avatar pomber commented on May 17, 2024 5

I have something working https://angry-sinoussi-d4c063.netlify.com/. It isn't ready yet, I'll try to publish it after I use it for a talk next week.

from mdx-deck.

jxnblk avatar jxnblk commented on May 17, 2024 2

CodeSurfer looks great! I think we can add a link to the readme for code-surfer to close this issue out

from mdx-deck.

trevordmiller avatar trevordmiller commented on May 17, 2024 1

Nice work @pomber! Can't wait for this to land :)

from mdx-deck.

pomber avatar pomber commented on May 17, 2024

I'm currently working on something similar to (forked from) spectacle-code-slide and I would like to make it work with mdx-deck.
But I'm not sure how to access deck and slide like Appear does. withDeck and withSlide aren't exported in src/index.js. Any other way to access them from the npm package?

from mdx-deck.

jxnblk avatar jxnblk commented on May 17, 2024

If those HOCs aren’t exported, that’s an oversight – ideally they’d be one HOC but that’d require some architectural changes

from mdx-deck.

pomber avatar pomber commented on May 17, 2024

My bad. I can import them from:

import { withDeck } from "mdx-deck/dist/context";
import { withSlide } from "mdx-deck/dist/Slide";

from mdx-deck.

kutyel avatar kutyel commented on May 17, 2024

Wow, that looks very promising!! I think you almost got it! 🎉 @jxnblk what do you think? 😄

from mdx-deck.

trevordmiller avatar trevordmiller commented on May 17, 2024

@pomber Awesome. I’ll be testing it in the next couple of days and will leave any feedback on the repo's issues.

@jxnblk, what do you think about wrapping this as a mdx-deck exported component - maybe called FocusCode or something to match FullScreenCode?

from mdx-deck.

kutyel avatar kutyel commented on May 17, 2024

Closing this since now code-surfer exists and the link is on readme.md, thanks! 🎉

from mdx-deck.

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.