Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Use transform to fit slide into browser window#6

Open
hb9hnt wants to merge 1 commit into
jed:gh-pagesfrom
hb9hnt:gh-pages
Open

Use transform to fit slide into browser window#6
hb9hnt wants to merge 1 commit into
jed:gh-pagesfrom
hb9hnt:gh-pages

Conversation

@hb9hnt

@hb9hnt hb9hnt commented Dec 5, 2020

Copy link
Copy Markdown

Hi there

For a presentation I used your weenote script but I wanted to use images and svg elements on the slide. Since your fir-function only scale the text size this didn't work for me. So I rewrote the fit function to use css transforms to fit the slide into the browser window.

This has IMHO two advantages:

  • It scales whathever element you want to use in a slide, no only text.
  • If you use something which isn't text in the fit function, it doesn't result in a infinite loop because the font size doesn't affect the element.

Feel free to ignore my PR, I just thought I'll let you know in case you like my changes. I'm also quite sure that it has downsides that I'm not aware of - even though it worked for my presentation.

Regards

Beni

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant