You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
High-Performance Text Diff Motion Component based on Levenshtein diff algorithm. Make your text flow like water. <ahref="https://tombcato.github.io/smart-ticker/?lang=en">Live Demo ></a> <br />
|**🌏 Multi-Charset Support**<br>Supports CJK, Numbers, Emojis, and mixed text rolling. Auto-adjusts spacing based on Unicode width. |**🧠 Smart Diff Animation**<br>Uses Levenshtein algorithm to find the shortest change path; identical characters remain static. |
36
37
|**⚡ Smooth Interruption**<br>Seamlessly transitions to new targets if the value changes dynamically during animation. |**📈 Rich Motion**<br>Built-in variety of easings.Supports custom easing function. Supports `charWidth` fine-tuning. |
37
-
|**🦄 Dual Framework**<br>Provides both React (Hooks) and Vue 3 (Composition) components with a unified API. |**🚀 High Performance**<br>Powered by `RAF`, supporting **Auto-scale**, **Fading Edge**, and **Disable Animation**. |
38
+
|**🦄 Multi-Framework**<br>React (Hooks), Vue 3 (Composition), and Svelte 4+ components with a unified API. |**🚀 High Performance**<br>Powered by `RAF`, supporting **Auto-scale**, **Fading Edge**, and **Disable Animation**. |
38
39
39
40
## 📦 Installation
40
41
@@ -121,6 +122,26 @@ const price = ref('73.18');
121
122
</template>
122
123
```
123
124
125
+
### Svelte
126
+
127
+
```svelte
128
+
<script>
129
+
// NPM Usage
130
+
import { Ticker } from '@tombcato/smart-ticker/svelte';
0 commit comments