Ranvier.Anime 0.1.0

dotnet add package Ranvier.Anime --version 0.1.0
                    
NuGet\Install-Package Ranvier.Anime -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ranvier.Anime" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ranvier.Anime" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Ranvier.Anime" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ranvier.Anime --version 0.1.0
                    
#r "nuget: Ranvier.Anime, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ranvier.Anime@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ranvier.Anime&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Ranvier.Anime&version=0.1.0
                    
Install as a Cake Tool

Ranvier.Anime

A .NET port of anime.js 4.5 for Ranvier hosts. It runs on a Ranvier FrameScheduler, writes through Ranvier.Dom and Ranvier.Css, is reflection-free and compiles under NativeAOT.

The same API is available in the browser as Fable.Ranvier.Anime, over the anime.js npm package. Code written against the portable surface below compiles unchanged for either.

The portable surface

Install the host's services once, on the host thread, before anything animates:

open Ranvier.Anime

let install (host: WebCoreHost) =
    AnimeHost.Install { Scheduler = Frames.forHost host; Computed = ComputedStyles.forHost host }

Then animate. No scheduler appears in a portable call; the functions read the installed host.

open Ranvier.Anime
open Ranvier.Anime.Dom

let appear (el: Element) : ComposedAnimation =
    Anime.animate
        (box el)
        [| PropertySpec.Scalar ("opacity", 1., fromValue = 0.); PropertySpec.Scalar ("y", 0., fromValue = 12.) |]
        { ComposedAnimationOptions.Default with Duration = 240.; Ease = Ease.named "outQuad" }
Area Names
Contracts IRevertible, ITickable
Animations Anime.animate, Anime.animateTargets, Anime.timeline, PropertySpec, ComposedAnimationOptions, ComposedAnimation, ComposedTimeline, TimelinePosition
Easing Ease.named, Ease.cubicBezier, Ease.steps
Following a value Follow.property, Follow.css, Follow.draw, Follow.morph
Layout Flip.create, Flip.keepBox, Flip.children, LayoutOptions
Scroll Scroll.observe, ScrollOptions, ScrollSync, ScrollEvent
Drag Drag.create, NativeDraggableOptions, NativeDraggable
Text Text.split, TextSplitterOptions, TextSplitter
Reactive Reactive.policy, Reactive.own
DOM Ranvier.Anime.Dom aliases, DomKit, NodeSet

Scroll.observe and Drag.create need the host's input, resize and viewport services: use the AnimeHost.Install overload taking AnimeInteractionServices.

Build option records from their defaults, naming only the fields you change: { ComposedAnimationOptions.Default with Duration = 300. }. Fields that exist on one engine only (Computed, Registry and Playback here; Unit and Extra in the browser) are not portable.

The native API

Everything the port has beyond the portable surface takes its scheduler explicitly and stays available:

  • Timer, Timeline, NumericAnimation and NumericProperty handles, with PlaybackOptions for repeat, direction, speed and callbacks;
  • Keyframes, Keyframe and KeyframeSequence for numeric and typed CSS keyframes, sparse rows and offsets;
  • CssAnimation and Animatable for typed Ranvier.Css declarations and retargetable handles;
  • Composed.animate and Composed.createTimeline, the scheduler-first forms of Anime.*;
  • Layout, ScrollContainerRegistry, NativeDraggable, Svg, Text, Waapi, Scope, Engine, Stagger, Spring and Utils.

Objects created under a Ranvier owner are reverted when it is disposed; Timer.own, Timeline.own and Reactive.own attach one explicitly.

Parity

Behaviour is checked against anime.js v4.5.0 (commit 2c9cf8e) with reference traces generated from the upstream source. Named and modern colour interpolation, some pending-variable CSS shorthand snapshots and the Three.js adapters are not implemented. THIRD-PARTY-NOTICES.md, shipped in the package, carries the upstream notices.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Ranvier.Anime:

Package Downloads
Ranvier.View.Anime

Motion parts for Ranvier.View templates over the native Ranvier.Anime, for .NET hosts: lifecycle, enter and exit, FLIP and signal-driven animation, omitted by the server renderer. Fable projects use Fable.Ranvier.View.Anime.

Ranvier.D5

Functional visualization foundations for F#: data, scales, geometry, layouts and reactive scenes using Ranvier signals and Anime.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 294 11/14/2026
0.1.0-rc.2 510 11/12/2026
0.1.0-rc.1 987 11/11/2026

Pre-1.0 release. The API may change before 1.0.