sal icon indicating copy to clipboard operation
sal copied to clipboard

Using sal.js with WordPress Gutenberg blocks

Open bnikkhah opened this issue 5 years ago • 2 comments

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!

bnikkhah avatar Apr 23 '21 04:04 bnikkhah

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.

Levdbas avatar May 01 '21 19:05 Levdbas

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

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

stevesy avatar Jun 03 '21 16:06 stevesy