-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fit / Fill text in slide #316
Comments
I had the similar issue and found the solution. Following code receives slideshow - afterShowSlide callback from remarkjs and recreate the bigtext content on current slide. <script>
slideshow.on('afterShowSlide', function (slide) {
if( 'querySelectorAll' in document ) {
$('.bigtext').bigtext();
}
</script> |
@jenokarthic tip works also great with flot and solves the issue. There is however a problem if you do a page relaod on the page showing the bigtext or flot graph. To be able to reload the page (or open it directly via a deep link), I suggest to do the following:
|
Thanks everyone, now it's in the wiki! |
Still to do: * Fit text - see gnab/remark#316 * Fit images - see gnab/remark#72 * Add Codethink logo at start and end * Remove 'bottom bar' - ? * Make it more beautiful
The fit/fill text property in DeckSet (sample) and Spectacle (sample slide3 and slide7) is a nice touch for having beautiful slides. I was trying to integrate fit/fill text property into remark. I decided to try BigText.js library (another alternative is FitText). Currently I have the following lines in HTML:
When I view the presentation, I had to refresh the slide to see the effect. (same problem with mermaid was described in issue #315
When I refresh, I see that BigText.js works as shown before:
My questions are;
The text was updated successfully, but these errors were encountered: