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

Using sal.js with WordPress Gutenberg blocks #83

Open
bnikkhah opened this issue Apr 23, 2021 · 2 comments
Open

Using sal.js with WordPress Gutenberg blocks #83

bnikkhah opened this issue Apr 23, 2021 · 2 comments

Comments

@bnikkhah
Copy link

Would you guys know how I can use this animation library with the WordPress Gutenberg block editor?

When I read through the documentation, I understood I have to use data attributes to make stuff animate, but would you guys know how I can add data attributes to WordPress Gutenberg blocks using sal.js?

Thank you for your help!

@Levdbas
Copy link

Levdbas commented May 1, 2021

What I did is create a custom animation block that nests other blocks. This way I can animate multiple blocks at once. I can sent you some reference code but you'll need some JavaScript knowledge.

@stevesy
Copy link

stevesy commented Jun 3, 2021

Not sure if you're still looking for a solution.

https://wordpress.org/plugins/block-data-attribute/

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

3 participants