Skip to contents

animejs 1.1.0

CRAN release: 2026-08-21

New features

  • anime_text() adds discrete text keyframes: a segment prop whose values are swapped into the target element’s textContent as the timeline advances, rather than tweened. It composes with ordinary tween props on the same segment and follows the play/pause and scrub controls. Useful for animated titles, counters, and tickers.

Bug fixes

  • An injected SVG that carries a viewBox but no width/height is now fitted to the widget’s width, with its height derived from the viewBox aspect ratio and the widget box grown to hold the drawing plus any controls bar. It no longer sizes itself from its intrinsic ratio and overflows, nor is it letterboxed inside a fixed box. SVGs with explicit dimensions are untouched.

  • The controls bar stylesheet is now actually loaded. It had been declared in the widget YAML under the same dependency name htmlwidgets uses for the binding script, so the higher-versioned auto entry won the deduplication and the CSS was dropped once the package version rose above the hardcoded one.

  • The play / pause button and scrub bar are fully styled and reset, so they render consistently across browsers and no longer inherit a host page’s button or range-input styling. The filled part of the track is painted with a gradient rather than browser-specific progress pseudo-elements.

animejs 1.0.0

CRAN release: 2026-07-20

Breaking changes

  • The easing serialisation protocol now matches the Anime.js v4 API. Anime.js v4 removed the string syntax for cubic bezier, steps, and spring easings, so these are now serialised as structured payloads and reconstructed as anime.cubicBezier(), anime.steps(), and anime.spring() calls in JavaScript. Spring parameters (previously silently ignored) now actually take effect.

  • anime_on(), anime_playback(), and anime_render() now take x as the name of their first argument (previously timeline), since they also accept the new anime_animation objects.

  • anime_playback() arguments now default to NULL, meaning “leave the current setting unchanged”, instead of overwriting all playback settings on every call.

  • anime_target_class() and anime_target_id() now require a single string; anime_target_class() rejects class names with a leading dot instead of silently producing a broken selector.

  • animejs_widget() argument timeline_config has been renamed to config.

New features

Bug fixes

  • All user-facing functions now validate their inputs and raise structured, informative error messages.

  • Parameterised elastic and back easings no longer trigger spurious browser console warnings.

  • Easing specifications inside keyframes (anime_keyframes()) and staggers (anime_stagger(ease = )) are now serialised and resolved correctly; previously they were dropped by Anime.js.

  • anime_from_to() no longer converts numeric values to strings when unit is NULL.

  • anime_playback(controls = TRUE) no longer overwrites onUpdate and onComplete callbacks registered with anime_on(); the controls bar now chains them.

animejs 0.1.1

  • Fix icons for play/pause button

animejs 0.1.0

CRAN release: 2026-03-26

  • Initial CRAN submission.