Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
code-bunny opened this issue Jan 1, 2025 · 0 comments
Open

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

code-bunny opened this issue Jan 1, 2025 · 0 comments

Comments

@code-bunny
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant