Scroll a long image not the whole slide in revealjs #6171
-
DescriptionHello, I wonder if it is possible to scroll a long image vertically or a wide image horizontally in one slide? Adding
Also tried to create a new container as follows and it doesn't work either, maybe my syntax is wrong. Could you please help? Thank you very much.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Possible, yes, but definitely not by default. Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @mcanouil. The following example seems to work, ---
format:
revealjs:
embed-resources: true # this controls whether resources in an external folder
standalone: true # this is default option to have a complete HTML file
transition: none
progress: true
controls: false
width: 1280
height: 720
menu: false
preview-links: false
multiplex: false
auto-stretch: false
---
## Scrollable slide {.scrollable}
A full workflow available in TE-dependent analysis [tedana](https://tedana.readthedocs.io/en/stable/multi-echo.html) Python library
{fig-align="center" width="650"}
## Attempt for scrollable long image
A full workflow available in TE-dependent analysis [tedana](https://tedana.readthedocs.io/en/stable/multi-echo.html) Python library
<div style="overflow-y: scroll; height: 400px;" class="scroll-container">
{fig-align="center" width="650"}
</div> but do you know how can I create a container in CSS file such that I could use it like
|
Beta Was this translation helpful? Give feedback.
Why did you use HTML now while you were using fenced divs?
Also, there is no need to set both style and class attributes, especially when the class has the exact same specification.
See: