Un-truncate Text Tween
✓ Published0🌍 Public
TTommyCoin80
Last edited Feb 1, 2017
Created on Jan 31, 2017
A text label alternates between a short title and a longer explanatory sentence by smoothly truncating and expanding its visible characters. The animation uses D3 v4’s `transition` and `tween` methods with `d3.interpolate` to interpolate between string lengths, while `d3.easeLinear` controls the constant speed. The SVG text element is updated via `slice` in the tween callback, cycling through expand and shrink phases on a 3-second duration with a 1-second delay.
AI-generated description