| @@ -92,10 +92,14 @@ | ||
| 92 | 92 | public static function get_animation_slugs(): array |
| 93 | 93 | { |
| 94 | 94 | $slugs = ['none']; |
| 95 | 95 | |
| 96 | - foreach (array_merge(self::$free_animations, self::$pro_animations) as $group) { | |
| 97 | - $slugs = array_merge($slugs, array_keys($group)); | |
| 96 | + // Do not array_merge the two maps first: they share group keys (Slide, Skew, …), | |
| 97 | + // so the Pro map would replace the free slugs and drop values such as slide-top. | |
| 98 | + foreach ([self::$free_animations, self::$pro_animations] as $animations) { | |
| 99 | + foreach ($animations as $group) { | |
| 100 | + $slugs = array_merge($slugs, array_keys($group)); | |
| 101 | + } | |
| 98 | 102 | } |
| 99 | 103 | |
| 100 | 104 | return array_values(array_unique($slugs)); |
| 101 | 105 | } |