Skip to content

How best to add a finite selection to a section #107

Closed
@code-bunny

Description

@code-bunny

I have implemented AOS into the dev build of my website and given each block:

- label: "AOS Class"
  id: aos
  type: text
  default: "slide-up"

What would be ideal is if we could give this a predetermined list of classes.

At first thought I would have given each block a different animation, but this doesn't always work as you usually want to use specific animations as the user scrolls through the pages. For the most part I have used slide-up as it seems the least intrusive while also adding a bit of life to the page. But it would be grand if we had ether AOS built in and an ability to just select one of the classes, or some way to add a select box of options for things like this.

Another option I considered but almost immediately scrapped was to make a a dozen different types of the same block (one for each animation), but that would be a maintenance nightmare.

I'll gladly take any advice on the best way to implement this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions