Codeinwp / otter-blocks

Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter.
https://wordpress.org/plugins/otter-blocks/
GNU General Public License v3.0
143 stars 33 forks source link

Add support for .lottie files #1151

Closed HardeepAsrani closed 2 years ago

HardeepAsrani commented 2 years ago

Description:

We need to add support for .lottie format for the Animations.

You can take a look at how the player here handles when you use these two different files, the code changes:

You can find the lottie-player component here that works with .lottie files: https://github.com/dotlottie/player-component - so we can load them based on which file is being used. We just need to make sure the both files work the same way in the front and backend.

Alternatives:

Find some way to convert .lottie to .json

arinaturcu commented 2 years ago

Note: I checked what @Soare-Robert-Daniel said in the meeting about newer versions of lottie-player, and they still don't support .lottie files. So, the dotLottie player component is needed.

HardeepAsrani commented 2 years ago

@arinaturcu Yea, that's the one I had seen.

pirate-bot commented 2 years ago

:tada: This issue has been resolved in version 2.1.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: