Skip to content

Interaction and engagement in courses #232

Open

Description

@Vad1mo

We have used Articulate in the past, and while it is possible to create the same content with Lia, what I am missing in Lia are the interactive elements.

It can be simple as flashcards. Labeled graphics.

The big advantage of this element is that it makes the course more interactive, user need to click, drag, and move around to uncover elements.

Image

I was able to recreate many of those elements in Lia, with simple CSS and some HTML wrappers.

Unfortunately, it became quite cumbersome and messy, I think it would make sense if there would be a more options to render lists differently
Because most of those elements articulate supports are nothing more than lists.

Here is a demo of some of the elements in articulate.

https://yoadrian.gitlab.io/elearning-demo/#/

I can think of two ways how Lia could make it easier:

  1. Build in an option to render lists differently. This would allow everyone to create their own rendering
  2. Build in flashcards, sliders, labeled graphics into Liascript nativly.

Activity

  1. Vad1mo commented on Jun 26, 2025

    @Vad1mo
    Author

    Hier ist z.b. ein bsp- für eine Lösung mit Macros.
    Leider ist das eine Mischung aus Makros und HTML, was das ganze ein wenig komplexer macht.

    .cards-container {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        margin: 2rem 0;
    }
    
    .card {
        width: 275px;    
        height: 275px;
        perspective: 500px;
        flex: 0 0 auto;
    }
    
    .card-content {
        width: 100%;
        height: 100%;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        transition: transform 1s;
        transform-style: preserve-3d;
    }
    
    .card:hover .card-content {
        transform: rotateY(180deg);
    }
    
    .card-front,
    .card-back {
        position: absolute;
        height: 100%;
        width: 100%;
        background: white;
        color: #004d56;
        text-align: center;
        border-radius: 5px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        display: grid;
        place-items: center;
        align-content: center;
        padding: 1em;
    }
    .card-front {
        font-size: 120%; 
    }
    .card-back {
        background: #8861a9;
        color: white;
        transform: rotateY(180deg);
    }

    The macro

    @flip_card
    <div class="card">
      <div class="card-content">
        <div class="card-front">
          @0
        </div>
        <div class="card-back">
        <lia-keep>
          @1
          </lia-keep>
        </div>
      </div>
    </div>
    @end

    Usage in liascript.

    <div class="cards-container">
    @flip_card(`**Front #1**`,`Back`)
    @flip_card(`**Front #2**`,`Back`)
    @flip_card(`**Front #3**`,`Back`)
    @flip_card(`**Front #4**`,`Back`)
    </div>
    
  2. andre-dietrich commented on Jun 26, 2025

    @andre-dietrich
    Member

    Hey, I modified your example a bit, but it is basically using your approach ...

    Try out here

    I simply changed your CSS a little bit to include larger LiaScript content, you can change this back ... but, what I think might be usefull, would be another type of writing down your macros:

    <div class="cards-container">
    @flip_card(`**Front #1**`,`Back`)
    @flip_card(`**Front #2**`,`Back`)
    @flip_card(`**Front #3**`,`Back`)
    @flip_card(`**Front #4**`,`Back`)
    </div>

    This can be replaced by:

    <div class="cards-container">
    
    ``` markdown @flip_card(Front #1)
    # Some more
    
    and complex Content with images too...
    
    ![alt](image.jpg)
    ```
    
    ``` markdown @flip_card(Front #1)
    # Some more
    
    and complex Content with images too...
    
    ![alt](image.jpg)
    ```
    
    </div>

    The idea is, that if you need more complex inputs to macros, such as code, json, yaml, whatsoever, you can put this into a code-block. The content of the code-block will be passed as the last parameter to the macro, while you can also add a language indicator for better reading. The macro is called from the head, with all required parameters, you could also generate another flip_card.centered for example or pass other CSS, but the last parameter is always the code that gets passed with all indentations and newlines ...

    Does this fit for your approach?

    Kind regards,

    André

  3. andre-dietrich commented on Jun 26, 2025

    @andre-dietrich
    Member

    PS: Maybe you know a certain flash-card library? This could be integrated as well?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions