Image Carousels: step through images that belong together

AnkiWeb addon 1467205853

Renders grouped images as navigable carousels in Anki cards, supporting prev/next buttons, bracket keys or per-carousel input, optional descriptions, and customizable CSS classes.
AI-generated summary; may contain mistakes.

card-templates

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
3 (πŸ‘ 3 Β· πŸ‘Ž 0)
Updated
2020-11-03
Anki versions
2.1.16~
Description language
en

Maintenance

abandoned

  • Last update or commit was 2158 days before the snapshot (2020-11-03).
  • The repository has 1 test files.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.16+2020-11-03
History across monthly snapshots

Loading…

Similar addons

The Sub-Deck Navigator

Adds Previous Deck and Next Deck buttons on Anki's congratulations screen for navigating sibling subdecks, with optional Study Mode and keyboard shortcuts [ and ].

review-flowdeck-managementshortcuts

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 25.09.1~ Updated 2026-03-31

README

anki-step-images (Image Carousels)

This addon allows you to step through images that belong together. For example, if you want images A,B and C to be in a carousel, place the following somewhere in the field value text editor:

!steps
{imgA}
{imgB}
{imgC}
!steps

When Anki renders a card, it passes the generated HTML to this addon. This addon will then look for the above pattern and replace it with HTML/Javascript to make a carousel possible. You may step through the images in the carousel a few different ways.

If there is more than one carousel in the rendered card:

  • press the prev button or type [ in the input box displayed for that carousel to go to the previous image in the carousel.
  • press the next button or type ] in the input box displayed for that carousel to go to the next image in the carousel.

Otherwise, if there is only one carousel in the rendered card, in addition to the above you may:

  • type [,] anywhere to go to the previous/next image in the carousel, respectively.

You may add an optional description for any number of the images in the field value text editor like so:

!steps
{imgA}
!stepd this is a description for imgB !stepd
{imgB}
!stepd this is a description for imgC !stepd
{imgC}
!steps

Note the description must be placed above the image you want it for and below the previous image.

styling

You may override the default styling for different components of the carousel to your liking. The css classes you can override are:

stepImagesWrapper
stepImagesCtrlRow
stepImagesCounter
stepImagesPrevBtn
stepImagesNextBtn
stepImagesInput
stepImagesImg
stepImagesDescription

The following is the html structure used for the carousel. This may help if you do want to customize the style.

<div class="stepImagesWrapper">
    <div class="stepImagesCtrlRow">
        <span class="stepImagesCounter"></span>
        <button class="stepImagesPrevBtn">prev</button>
        <button class="stepImagesNextBtn">next</button>
        <input class="stepImagesInput"/>
    </div>
    <img class="stepImagesImg">
    <p class="stepImagesDescription"></p>
</div>

example - tying a knot

Given the following (partial) entered into a field value text area:

knot-demo

the following carousel will be generated:

example carousel

developing

Make changes and then run python build.py test. This will work for Anki 2.1 on OSX. If you have a different OS you will need to modify ./build.py accordingly.

To generate knot-demo.gif, I used quicktime screen recording to create a .mov file and then converted it to gif via

ffmpeg -i knot-demo.mov -s 400x526 -r 10 knot-demo.gif

deploying

python build.py dist

the .addon file you need to upload will be placed in dist/. for the description you enter @ https://ankiweb.net/shared/upload paste this README and edit accordingly.