Title: AM LottiePlayer
Author: Johan Martin Aarstein
Published: <strong>12. december, 2022</strong>
Last modified: 8. oktober, 2026

---

Søg plugins

![](https://ps.w.org/am-lottieplayer/assets/banner-772x250.png?rev=3617697)

![](https://ps.w.org/am-lottieplayer/assets/icon.svg?rev=3617697)

# AM LottiePlayer

 Af [Johan Martin Aarstein](https://profiles.wordpress.org/johanaarstein/)

[Download](https://downloads.wordpress.org/plugin/am-lottieplayer.4.2.6.zip)

[Forhåndsvisning i realtid](https://da.wordpress.org/plugins/am-lottieplayer/?preview=1)

 * [Detaljer](https://da.wordpress.org/plugins/am-lottieplayer/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/am-lottieplayer/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/am-lottieplayer/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/am-lottieplayer/#developers)

 [Support](https://wordpress.org/support/plugin/am-lottieplayer/)

## Beskrivelse

**Den til dato mest komplette Lottie-spiller.**

AM LottiePlayer is easy to use, lightweight, and gives you total control over how
to implement crisp, vectorized animations to your website. Easily set up user interactions,
choose between JSON or the optimized dotLottie format, choose whether to serve the
files from a CDN or your own _Media Library_, choose how to scale the animation,
add a nice description for screen readers and search engine crawlers, and you’re
off to the races!

Upload Lottie-animationer til WordPress, og tilføj dem til Gutenberg, Divi, Elementor,
Bricks, Flatsome UX Builder eller via kortkoden `[am-lottieplayer]`. Dette plugin
tilbyder også delvis understøttelse af WPBakery (tidligere Visual Studio).

#### Egenskaber

 * Indeholder to Gutenberg-blokke: en afspiller og en omslagsblok med tekstoverlejring–
   fantastisk til overskrifter.
 * Indeholder en Divi-modul
 * Indeholder en Elementor-widget
 * Contains a Bricks Element
 * Indeholder kortkoden `[am-lottieplayer]`
 * Has integration for Flatsome UX Builder
 * Har delvis understøttelse af WPBakery (tidligere Visual Studio)
 * Scripts indlæses kun på sider, hvor afspilleren er i brug
 * Upload Lottie JSON- eller dotLottie-filer til dit _Mediebibliotek_
 * Træk & slip en Lottie JSON- eller dotLottie-fil
 * Indtast en Lottie JSON eller en dotLottie fra URL
 * Vælg skalering, hastighed, størrelse, baggrundsfarve, interaktioner og meget 
   mere fra blokindstillingerne i Gutenberg. De samme indstillinger er tilgængelige
   i Divi-modulmenuen, Elementor Widget-menuen, Flatsome UX Builder-menuen og WPBakery-
   menuen.

#### Links

 * [Website](https://www.aarstein.media/en/am-lottieplayer)
 * [AM LottiePlayer PRO](https://www.aarstein.media/en/am-lottieplayer/pro)

#### PRO

AM LottiePlayer is also available in a professional version, which includes more
functionality and flexibility. The AM LottiePlayer PRO features are:

 * Combine animations in a single file via drag and drop
 * Control interactions and behavior of each animation in multi-animation files
 * Convert JSON-lotties to dotLottie in an easy-to use GUI
 * Choose renderer: SVG, Canvas or HTML
 * More of the functionality from animations made with After Effects

[Upgrade to AM LottiePlayer PRO](https://www.aarstein.media/en/am-lottieplayer/pro)

### Feedback

We’d love to [hear from you](https://da.wordpress.org/plugins/am-lottieplayer/johan@aarstein.media?output_format=md)!

Tak, fordi du bruger vores udvidelse! Brug venligst et øjeblik på at [vurdere det](https://wordpress.org/support/view/plugin-reviews/am-lottieplayer?filter=#postform).

### Oversættelser

Du kan [bidrage med dine oversættelser her](https://translate.wordpress.org/projects/wp-plugins/am-lottieplayer).

Første gang du oversætter WordPress? Læs [Oversætterhåndbogen](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/)
for at komme i gang.

## Skærmbilleder

[⌊AM LottiePlayer er kompatibel med Gutenberg...⌉⌊AM LottiePlayer er kompatibel 
med Gutenberg...⌉[

AM LottiePlayer er kompatibel med Gutenberg…

[⌊...såvel som Divi-byggeren...⌉⌊...såvel som Divi-byggeren...⌉[

…såvel som Divi-byggeren…

[⌊…Elementor…⌉⌊…Elementor…⌉[

…Elementor…

[⌊…Flatsome…⌉⌊…Flatsome…⌉[

…Flatsome…

[⌊…and Bricks!⌉⌊…and Bricks!⌉[

…and Bricks!

## Blokke

Dette plugin giver 2 blokke.

 *   AM LottiePlayer Spil Lottie-animationer på dit WordPress-websted.
 *   AM LottieCover Tilføj Lottie-animation med et tekstoverlay. Fantastisk til 
   overskrifter.

## Installation

#### Automatisk installation

Automatisk installation er den nemmeste mulighed. WordPress klarer filoverførslen–
og du behøver ikke at forlade browseren.

 1. Log ind på WordPress kontrolpanel
 2. Naviger til menuen **Udvidelser**
 3. Søg efter **AM LottiePlayer**
 4. Klik på **Installer nu** – og WordPress tager det derfra
 5. Aktiver plugin’et gennem **Plugins**-menuen i WordPress

#### Manuel installation

 1. Upload hele ‘am-lottieplayer’ til din plugins-mappe
 2. Aktiver plugin’et gennem **Plugins**-menuen i WordPress

#### Efter aktivering

 1. Gå til WordPress’ blokeditor / Elementor / Divibuilder / Flatsome UX
 2. Tilføj en ny blok / widget / modul
 3. Søg efter _Lottie_
 4. Klik på _Lottie_ for at tilføje blok

Hvis du vil bruge kortkoden `[am-lottieplayer]`, har den følgende parameter:

 * src: `string` (required)
 * autoplay: `true` | `false`, default: `false`
 * controls: `true` | `false`, default: `false`
 * loop: `true` | `false`, default: `false`
 * objectfit: `cover` | `contain` | `fill` | `scale-down` | `none`, default: `contain`
 * speed: `number` (1 – 5), default: `1`
 * direction: `1` | `-1`, default: `1`
 * onclick: `true` | `false`, default: `false`
 * onmouseover: `true` | `false`, default: `false`
 * onmouseout: `void` | `stop` | `pause` | `reverse`, default: `void`

## FAQ

### Hvad er strukturen af ​​shortcoden?

Kortkoden `[am-lottieplayer]` har følgende parameter:

 * src: `string` (required)
 * autoplay: `true` | `false`, default: `false`
 * controls: `true` | `false`, default: `false`
 * loop: `true` | `false`, default: `false`
 * objectfit: `cover` | `contain` | `fill` | `scale-down` | `none`, default: `contain`
 * speed: `number` (1 – 5), default: `1`
 * intermission: `number` in milliseconds
 * direction: `1` | `-1`, default: `1`
 * onclick: `true` | `false`, default: `false`
 * onmouseover: `true` | `false`, default: `false`
 * onmouseout: `void` | `stop` | `pause` | `reverse`, default: `void`

Her er et eksempel: `[am-lottieplayer src="https://storage.googleapis.com/aarsteinmedia/
am.lottie" controls="true"]`

## Anmeldelser

![](https://secure.gravatar.com/avatar/5d06bd2c3c1b03af6271127ee931dc56a09d0428bbdd42233a4971cc388325b3?
s=60&d=retro&r=g)

### 󠀁[Amazing author](https://wordpress.org/support/topic/amazing-author/)󠁿

 [aksaeno](https://profiles.wordpress.org/aksaeno/) 15. maj, 2024

I submitted a bug and it got fixed in less than 2 days. Overall good plugin.

![](https://secure.gravatar.com/avatar/45551e646d920772f4b0d7d21e2db41538db7cdb7605696f76c442e5cdda9380?
s=60&d=retro&r=g)

### 󠀁[Perfect solution!](https://wordpress.org/support/topic/perfect-solution-262/)󠁿

 [declutterdata](https://profiles.wordpress.org/declutterdata/) 11. november, 2023

As I am using animated JSON files from a third party (not Lottie) I was searching
a long time for a solution how to use them.This plugin gave the solution to me.Works
fantastic with DIVI and the support is great.!

![](https://secure.gravatar.com/avatar/ab306eb36ace79fe079cc0b118636d7a4071d2c8c613eea78a96c8ce57b465e5?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin and amazing support](https://wordpress.org/support/topic/amazing-plugin-and-amazing-support-30/)󠁿

 [zmayyem](https://profiles.wordpress.org/zmayyem/) 5. maj, 2023

Absolutely thrilled with this plugin and the amazing support team behind it.

![](https://secure.gravatar.com/avatar/a18c36e20b90dcf5322fdcb225344106c5173cc12ec7fe85f4711c4bd9d20c90?
s=60&d=retro&r=g)

### 󠀁[Finally](https://wordpress.org/support/topic/finally-336/)󠁿

 [superinc](https://profiles.wordpress.org/olestoresund/) 23. marts, 2023

Finally 👌🏻

![](https://secure.gravatar.com/avatar/84090d668d41ce0ae527a8b6520ca7db82e226d29daefc61dd2ec53202399baa?
s=60&d=retro&r=g)

### 󠀁[Long needed plugin](https://wordpress.org/support/topic/long-needed-plugin-2/)󠁿

 [Simon](https://profiles.wordpress.org/simonskaar/) 6. februar, 2023

Great plugin and good support. Will be using this on several sites. Keep up the 
development! 🙂

 [ Læs alle 5 anmeldelser ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/)

## Bidragsydere & udviklere

“AM LottiePlayer” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

 *   [ Johan Martin Aarstein ](https://profiles.wordpress.org/johanaarstein/)

“AM LottiePlayer” er blevet oversat til 4 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/am-lottieplayer/contributors)
for deres bidrag.

[Oversæt “AM LottiePlayer” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/am-lottieplayer)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/am-lottieplayer/), tjek
[SVN repository](https://plugins.svn.wordpress.org/am-lottieplayer/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/am-lottieplayer/) via
[RSS](https://plugins.trac.wordpress.org/log/am-lottieplayer/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 4.2.4 – October 6 2026

 * Performance enhancements to animation engine.

#### 4.2.2 – September 21 2026

 * Minor update to animation engine.

#### 4.2.1 – September 17 2026

 * Added accessibility check for `prefers-reduced-motion: reduce`. This overrides
   and disables `autoplay` and `playOnVisible`.

#### 4.1.1 – September 10 2026

 * Fixed issue with text domain

#### 4.1.0 – September 9 2026

 * Added support for DIVI 5.
 * Various bugfixes

#### 4.0.1 – August 28 2026

 * Tested with WP 7.1
 * Fixed bug causing accessible labels not to appear in Gutenberg.

#### 4.0.0 – August 5 2026

 * Tested with WP 7.0
 * Gutenberg blocks are updated to apiVersion 3
 * Animation engine updated

#### 3.6.3 – March 11 2026

 * Fixed bug in Gutenberg builder causing block to break.

#### 3.6.0 – Feb 24 2026

 * Tested with WP 6.9
 * Added limited support for parsing Lottie v2.0 files.
 * Various bugfixes

#### 3.5.17 – Sep 4 2025

 * Minor updates to animation engine.

#### 3.5.16 – Aug 11 2025

 * Fixed bug causing Bricks builder to crash.

#### 3.5.15 – June 21 2025

 * Fixed bug causing some elements to have wrong placement.
 * Fixed bug with toggling boomerang
 * Minor optimizations

#### 3.5.14 – June 11 2025

 * Fixed runtime bug where minification caused some functionality to break
 * Minor optimizations to animation engine.

#### 3.5.11 – June 6 2025

 * Fixed issue with sanitation of string values, causing trouble for text layers
   and unencoded expressions.

#### 3.5.10 – June 5 2025

 * Fixed issue with data handling in animation engine.

#### 3.5.9 – June 4 2025

 * Fixed issue with data handling in animation engine.

#### 3.5.8 – June 2 2025

 * Fixed issue with modifiers not being rendered correctly
 * Fixed issue with parsing of layers, causing some animations to have mangled transforms

#### 3.5.6 – May 14 2025

 * New animation engine
 * Added support for optimized dotLottie files
 * Various minor bugfixes

#### 3.5.5 – May 9 2025

 * Rolled back animation engine due to bugs

#### 3.5.4 – April 22 2025

 * Added more style options for Gutenberg block: margin, padding and drop-shadow.
 * Enhanced sanitation of uploads

#### 3.5.3 – April 21 2025

 * Fixed issue with sanitation that prevented some valid lottie files from uploading.
 * Fixed issue that prevented Lotties from being uploaded via REST API.
 * Fixed too early invoking of textdomain.
 * Enhanced sanitation of SVG thumbnails.

#### 3.5.2 – April 3 2025

 * Fixed compatibility issues with older versions of PHP, causing sanitation not
   to work properly.

#### 3.5.1 – March 28 2025

 * Enhancing of sanitation method
 * Changed behavior of mouseover interaction, so that animation resets on new mouseover
   when animation is complete.

#### 3.5.0 – February 22 2025

 * Added sanitation to upload. Credit to Avraham Shemesh for exposing a security
   hole.

#### 3.4.5 – February 21 2025

 * Fixed CSS bugs

#### 3.4.4 – February 5 2025

 * ES2021 -> ES2022

#### 3.4.3 – January 17 2025

 * Fixed bug preventing playback on hover in some builders

#### 3.4.2 – October 28 2024

 * Fixed bug with Elementor playback direction

#### 3.4.1 – October 27 2024

 * Fixed bug with front end script in Gutenberg

#### 3.4.0 – October 13 2024

 * Added support for Bricks Builder
 * Tested with WordPress 6.7
 * Added nonce to thumbnail uploader

#### 3.3.10 – October 8 2024

 * Fixed font-end script not parsing interactions correctly

#### 3.3.9 – October 8 2024

 * Fixed bug in Elementor preventing front-end render

#### 3.3.8 – October 8 2024

 * Fixed bug in Divi visual builder causing autoplay not to work

#### 3.3.7 – October 7 2024

 * Minor bugfix

#### 3.3.6 – October 7 2024

 * Added blueprint.JSON
 * Minor changes

#### 3.3.5 – October 4 2024

 * Fixed critical bug

#### 3.3.4 – October 4 2024

 * Added thumbnail previews for Media Library

#### 3.3.1 – October 2 2024

 * Fixed bug with Flatsome template

#### 3.3.0 – October 28 2024

 * Refactored codebase
 * Implementation of namespace to avoid conflict
 * Migrated away from rich data to text attributes

#### 3.2.5 – October 20 2024

 * Extended browser support

#### 3.2.4 – September 30 2024

 * Added intermission controls
 * Added “Replace”-functionality to Gutenberg editor

#### 3.2.3 – September 11 2024

 * Updated frontend script

#### 3.2.2 – September 2 2024

 * Minor bugfixes

#### 3.2.1 – August 28 2024

 * New feature: Added option to use external urls with Gutenberg

#### 3.2.0 – August 6 2024

 * Updated and lighter animation engine
 * Tested with WordPress 6.6

#### 3.1.8 – June 21 2024

 * Bugfix to admin.css, where broad selectors created unwanted behavior

#### 3.1.7 – June 13 2024

 * Bugfix to backend script, fixing unwanted behavior on blur event

#### 3.1.6 – June 6 2024

 * Bugfix to frontend script

#### 3.1.5 – June 4 2024

 * Bugfix to animation engine

#### 3.1.4 – May 15 2024

 * Minor bugfixes

#### 3.1.3 – May 8 2024

 * Minor bugfixes

#### 3.1.2 – May 8 2024

 * Minor bugfixes

#### 3.1.1 – March 31 2024

 * Minor updates to animation engine

#### 3.1.0 – March 20 2024

 * Functional update to animation engine

#### 3.0.7 – March 6 2024

 * Minor updates to animation engine

#### 3.0.6 – Feb 12 2024

 * Minor updates to animation engine

#### 3.0.5 – Jan 15 2024

 * Performance: More accurate use of Intersection Observer, to freeze/pause all 
   animations out of view

#### 3.0.4 – Dec 31 2023

 * Updated, optimized animation engine

#### 3.0.3 – Dec 29 2023

 * Bugfix: Rollback of animation engine due to faulty script

#### 3.0.2 – Dec 29 2023

 * Bugfix: Fixed bug that caused animation lag in some browsers

#### 3.0.1 – Dec 20 2023

 * Added defer to loading of component scripts

#### 3.0.0 – Dec 8 2023

 * Because we’ve launched a [PRO version of this plugin](https://www.aarstein.media/en/am-lottieplayer/pro)
   some features, like boomerang, animation segments, external selector and the 
   option to choose renderer has been removed from the free tier. Certain methods
   from animations made with After Effects (like loopOut) has also been omitted.
   The upside is that this plugin is now even more lightweight and less RAM intensive
   than before. To anyone who still might experiences this as a downgrade: you’re
   free to continue to use [any version of this plugin below 3.0.0](https://wordpress.org/plugins/am-lottieplayer/advanced/).
   However, if you’d like to support the development of this plugin, the premium
   version starts at $2.75 a month ($33 a year), and contains several requested 
   features like the ability to combine and control multiple animations in a single
   file, or convert and optimize JSON to dotLottie. [Read more about AM LottiePlayer PRO here!](https://www.aarstein.media/en/am-lottieplayer/pro)

#### 2.5.17 – Nov 23 2023

 * Bugfix: Fixed compatibility issue with PHP 7.4

#### 2.5.16 – Nov 15 2023

 * Bugfix: Fixed loading issue for third party builders

#### 2.5.15 – Nov 11 2023

 * Compatibility with WordPress 6.4

#### 2.5.14 – Sep 22 2023

 * Bugfix: Fixed playback error on Divi Shortcode

#### 2.5.13

 * Bugfix: Fixed total frames display

#### 2.5.12

 * Optimization: Terser script, as well as new functionality available within JS.

#### 2.5.11

 * Bugfix: Fixed seeker on player

#### 2.5.10

 * Bugfix: Fixed uninitialized PHP variable

#### 2.5.9

 * Bugfix: Fixed seeker

#### 2.5.8

 * New Feature: Better error handling
 * Bugfix: Fixed link for Divi builder

#### 2.5.7

 * Minor bugfixes

#### 2.5.6

 * New Feature: Added support for Divi Theme Builder

#### 2.5.4

 * New Feature: Added option to play animation only once on scroll

#### 2.5.3

 * Bugfix: Play on scroll functionality wasn’t working properly in certain browsers.

#### 2.5.2

 * Minor bugfix.

#### 2.5.1

 * Bugfix: Added polyfill for Buffer, allowing bitmap assets for dotLottie animations.

#### 2.5.0

 * New Feature: Added play on scroll functionality

#### 2.4.1

 * New Feature: Expanded possibility to play segments to Divi Builder

#### 2.4

 * New Feature: Added possibility to play segments, in Gutenberg editor
 * Compatibility: Checked compatibility with new release of WordPress

#### 2.3.3

 * Bugfix: Fixed issue with shortcode and namings

#### 2.3.2

 * New Feature: Added support for selectors to Elementor, Flatsome, WPBakery and
   Divi

#### 2.3.1

 * Bugfix: Fixed issue with Boomerang

#### 2.3.0

 * New Feature: Added selector option for interactions
 * Bugfix: Fixed issue in Gutenberg where the player lost connection on block move

#### 2.2.2

 * Bugfix: Issue prevented Gutenberg backend from working properly

#### 2.2.1

 * Optimization: Preparations for future functionality expansion

#### 2.2.0

 * New Feature: Adding preview of animations in Media Library

#### 2.1.5

 * Optimization: Minor patches

#### 2.1.4

 * New Feature: Added partial support for WPBakery

#### 2.1.3

 * Bugfix: Minor errors in shortcode
 * Optimization: More options for screen readers

#### 2.1.2

 * Optimization: Bugfix in frontend script

#### 2.1.1

 * Optimization: Minor patches

#### 2.1.0

 * New Feature: Added support for Flatsome UX Builder

#### 2.0.4

 * Bugfix: An error caused shortcode not to load necessary scripts.

#### 2.0.3

 * Optimization: WCAG compliance

#### 2.0.2

 * Optimization: Less weight – same functionality!

#### 2.0.0

 * New Feature: Added support for Elementor.
 * Optimization: Made scripts load dynamically only when used
 * Bugfix: Minor bugfixes

#### 1.0.3

 * Optimization: Updates to animation engine. Faster and even more lightweight!

#### 1.0.2

 * Bugfix: typo in dotLottie decompression, causing base64 encryption of bitmap 
   images to break.

## Meta

 *  Version **4.2.6**
 *  Senest opdateret **1 måned siden**
 *  Aktive installationer **700+**
 *  WordPress-version ** 5.9 eller højere **
 *  Testet op til **7.1.4**
 *  PHP-version ** 8.0 eller højere **
 *  Sprog
 * [Danish](https://da.wordpress.org/plugins/am-lottieplayer/), [English (US)](https://wordpress.org/plugins/am-lottieplayer/),
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/am-lottieplayer/), [Norwegian (Nynorsk)](https://nn.wordpress.org/plugins/am-lottieplayer/)
   og [Swedish](https://sv.wordpress.org/plugins/am-lottieplayer/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/am-lottieplayer)
 * Tags
 * [bodymovin](https://da.wordpress.org/plugins/tags/bodymovin/)[gif](https://da.wordpress.org/plugins/tags/gif/)
   [gutenberg](https://da.wordpress.org/plugins/tags/gutenberg/)[lottie](https://da.wordpress.org/plugins/tags/lottie/)
   [SVG](https://da.wordpress.org/plugins/tags/svg/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/am-lottieplayer/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  5 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/am-lottieplayer/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/am-lottieplayer/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/am-lottieplayer/reviews/)

## Bidragsydere

 *   [ Johan Martin Aarstein ](https://profiles.wordpress.org/johanaarstein/)

## Support

Problemerne er løst inden for de sidste to måneder:

     1 ud af 1

 [Vis supportforum](https://wordpress.org/support/plugin/am-lottieplayer/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://www.paypal.com/donate/?hosted_button_id=E7C7DMN8KSQ6A)