Ranvier.Anime
0.1.0
dotnet add package Ranvier.Anime --version 0.1.0
NuGet\Install-Package Ranvier.Anime -Version 0.1.0
<PackageReference Include="Ranvier.Anime" Version="0.1.0" />
<PackageVersion Include="Ranvier.Anime" Version="0.1.0" />
<PackageReference Include="Ranvier.Anime" />
paket add Ranvier.Anime --version 0.1.0
#r "nuget: Ranvier.Anime, 0.1.0"
#:package Ranvier.Anime@0.1.0
#addin nuget:?package=Ranvier.Anime&version=0.1.0
#tool nuget:?package=Ranvier.Anime&version=0.1.0
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,NumericAnimationandNumericPropertyhandles, withPlaybackOptionsfor repeat, direction, speed and callbacks;Keyframes,KeyframeandKeyframeSequencefor numeric and typed CSS keyframes, sparse rows and offsets;CssAnimationandAnimatablefor typedRanvier.Cssdeclarations and retargetable handles;Composed.animateandComposed.createTimeline, the scheduler-first forms ofAnime.*;Layout,ScrollContainerRegistry,NativeDraggable,Svg,Text,Waapi,Scope,Engine,Stagger,SpringandUtils.
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 | Versions 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. |
-
net10.0
- FSharp.Core (>= 10.0.100)
- Ranvier (>= 0.2.0)
- Ranvier.Css (>= 0.1.1)
- Ranvier.Css.Dom (>= 0.1.0)
- Ranvier.Dom (>= 0.1.0)
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.