sal
sal copied to clipboard
Using sal.js with WordPress Gutenberg blocks
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!
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.
Not sure if you're still looking for a solution.
https://wordpress.org/plugins/block-data-attribute/