EnlighterJS / Plugin.Gutenberg

:pencil: Official EnlighterJS Plugin for WordPress Gutenberg Editor
Mozilla Public License 2.0
21 stars 1 forks source link

Support for animated blocks? #28

Closed ajtruckle closed 3 years ago

ajtruckle commented 3 years ago

Hi

I can't remember if I have asked this before. Here is a sample page that has a elighter code block on it:

https://www.publictalksoftware.co.uk/2020/10/meeting-schedule-assistant-version-20-2-8-newsletter/

The website is using an animations plugin. It seemed that I was able to apply a animation to the block, but when it is published the animation doesn't work.

It might not be possible anyway to do,

If you inspect the source of the other blocks they have an animation specified in the class definition.

Not to worry if it can't be done.

AndiDittrich commented 3 years ago

In case the animations are created via css3 transforms it should work by adding the class manually to the Enlighter block.

ajtruckle commented 3 years ago

At the moment it looks like this:

Classes

I don't know how else to set them.

AndiDittrich commented 3 years ago

did you enabled the feature in Enlighter -> Options -> Advanced -> EnlighterJS -> EnlighterJS options -> Retain CSS Classes ?

ajtruckle commented 3 years ago

I switched that option on and it did the trick! Thanks.