Skip to content
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

Control order of appearance of elements in an incremental slide #407

Closed
jdumas opened this issue Jan 19, 2017 · 3 comments
Closed

Control order of appearance of elements in an incremental slide #407

jdumas opened this issue Jan 19, 2017 · 3 comments

Comments

@jdumas
Copy link

jdumas commented Jan 19, 2017

Hi,

Let's say I have a list in an incremental slide, with an image below:

---
# Slide Title

- Item 1
- Item 2
- Item 3

.center[<img style="width:80%"  src="image.jpg">]

I want to make item 1, 2 and 3 appear incrementally (which I can do using a --). But I also want my picture to be shown from the beginning. If I use incremental slides, the picture will only be shown after the last element has appeared.

Would it be possible to have more fine-grained, beamer-like, control over the animations? Maybe I have missed something in the doc.

@abelards
Copy link
Collaborator

Hi @jdumas -- I totally understand what you need, but I would probably use a trick here:

<style>.fig1 { background: url('image.png') } </style>
---
# Slide with fig 1

.fig1 [

- Item 1
--

- Item 2
--

- Item 3
]

I'll let you find the correct background positioning you'll want in your CSS.

Also, if you wanted "sticky items" in "incremental slides", what syntax would you use?

It's been a long time since I did LaTeX and I almost never did beamer but feel free to give us examples.

Kind regards,

@jdumas
Copy link
Author

jdumas commented Dec 20, 2019

Thanks, but this is issue is 3 years old, and I haven't really used remark.js since then =)

@abelards
Copy link
Collaborator

I can imagine. I'll close the ticket and reference this in the wiki as HTML/CSS trick. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants