Comments (3)
In case others roll up here looking for how to get this to work with the {{< slide ... >}}
shortcode:
---
{{< slide auto-animate="" >}}
...
Did the charm for me. Note that the =""
is necessary! I found that very surprising, but without that everything gets confused as it processes the params as a key-value pair, and when using {{< slide auto-animate >}}
it treats this as a positional parameter, with a key of 0
and a value of "auto-animate"
, which doesn't do anything useful. Took me a bunch of reading the shortcode source to figure that out, and so maybe worth adding to the docs somewhere.
from reveal-hugo.
Could you tell us what you have tried ? Are you using the latest version of reveal-hugo (which updated its embedded reveal-js at 4.4.0) ?
To my knowledge, reveal-hugo does not yet have facilitators for the auto-animate feature.
But it does support adding html in your slides:
<section data-noprocess>
<h1>Hello, world!</h1>
</section>
With this feature, can you use the reveal-js animation blocks ?
from reveal-hugo.
I created a test slideshow with one _index.md
file with this content in it:
+++
title = "Animations"
outputs = ["Reveal"]
+++
# Automated animations
---
<section data-noprocess data-auto-animate>
<h1>Auto-Animate</h1>
</section>
<section data-auto-animate>
<h1 style="margin-top: 100px; color: red;">Auto-Animate</h1>
</section>
---
Another slide
This animation block was copied from the auto-animate reveal-js documentation.
Note that you need the latest reveal-hugo as this animation feature was added with reveal-js 4.0 and reveal-hugo was updated to support 4.4.0 on February 7 2023.
from reveal-hugo.
Related Issues (20)
- No mermaid graph rendered HOT 3
- files from exampleSite/ressources/_gen/assets/scss get regenerated at each build
- missing default list and single cause build warnings
- plugins usage and inclusion redesign HOT 1
- Finish circleci setup HOT 1
- [Question] Integrating with another theme and asciidoc HOT 1
- small glitch in reusable slide inclusion code HOT 1
- highlight example for line numbers does not show ... line numbers
- Headlines in orgmode break the following slides
- Don't populate disabled plugins in the generated tree HOT 1
- Is it possible to make a two-column slide? HOT 5
- Parsing error while using Mermaid diagrams with annotations HOT 2
- Slide templates aren't working when defined in hugo.toml HOT 3
- Upgrade to reveal 5 HOT 3
- Support for Opengraph and automatic opengraph image generation HOT 5
- Reveal themes not working? HOT 4
- mermaid diagrams not rendered in `?print-pdf` mode HOT 1
- params.reveal_hugo not works
- Leaf bundle: Generate slides from another single file than index.md ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reveal-hugo.