@@ -298,9 +298,37 @@ import GlideText from "@/components/animatios/GlideText";
298298 - ` direction ` (optional): ` 'top' ` , ` 'bottom' ` , ` 'left' ` , ` 'right' ` , ` 'horizontal' ` , ` 'vertical' ` .
299299
300300### Using Cdn
301-
302- ``` html
303301
302+ ``` html
303+ <!DOCTYPE html>
304+ <html lang =" en" >
305+ <head >
306+ <meta charset =" UTF-8" />
307+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
308+ <title >Glide Text Animation</title >
309+ <style >
310+ body {
311+ font-family : Arial , sans-serif ;
312+ display : flex ;
313+ justify-content : center ;
314+ align-items : center ;
315+ height : 100vh ;
316+ background-color : #f0f0f0 ;
317+
318+ }
319+ </style >
320+ </head >
321+ <body >
322+
323+ <h1 class =" GlideText" ></h1 >
324+
325+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/glide_text.js" ></script >
326+ <script >
327+ const animatio = new GlideText ([" Glide" , " Animation" ], 1 , " top" );
328+ </script >
329+ </body >
330+ </html >
331+
304332```
305333
306334### 6. ** LetterPopText**
@@ -330,6 +358,40 @@ import LetterPopText from "@/components/animatios/LetterPopText";
330358 - ` speed ` (optional): Animation speed (default: ` 1 ` ).
331359 - ` className ` (optional): Custom CSS class names.
332360
361+ ### Using Cdn
362+
363+ ``` html
364+ <!DOCTYPE html>
365+ <html lang =" en" >
366+ <head >
367+ <meta charset =" UTF-8" />
368+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
369+ <title >Letter Pop Text Animation</title >
370+ <style >
371+ body {
372+ font-family : Arial , sans-serif ;
373+ display : flex ;
374+ justify-content : center ;
375+ align-items : center ;
376+ height : 100vh ;
377+ background-color : #f0f0f0 ;
378+
379+ }
380+ </style >
381+ </head >
382+ <body >
383+
384+ <h1 class =" LetterPopText" ></h1 >
385+
386+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/letterpoptext.js" ></script >
387+ <script >
388+ const animatio = new LetterPopText ([" Letter Pop" , " Animation" ], 0.8 );
389+ </script >
390+ </body >
391+ </html >
392+
393+ ```
394+
333395### 7. ** SurgeText**
334396
335397Creates a surge effect where letters rotate in and move from different angles.
@@ -357,6 +419,40 @@ import SurgeText from "@/components/animatios/SurgeText";
357419 - ` speed ` (optional): Animation speed (default: ` 0.8 ` ).
358420 - ` className ` (optional): Custom CSS styles.
359421
422+ ### Using Cdn
423+
424+ ``` html
425+ <!DOCTYPE html>
426+ <html lang =" en" >
427+ <head >
428+ <meta charset =" UTF-8" />
429+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
430+ <title >Surge Text Animation</title >
431+ <style >
432+ body {
433+ font-family : Arial , sans-serif ;
434+ display : flex ;
435+ justify-content : center ;
436+ align-items : center ;
437+ height : 100vh ;
438+ background-color : #f0f0f0 ;
439+
440+ }
441+ </style >
442+ </head >
443+ <body >
444+
445+ <h1 class =" SurgeText" ></h1 >
446+
447+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/surgetext.js" ></script >
448+ <script >
449+ const animatio = new SurgeText ([" Surge" , " Animation" ], 0.8 )
450+ </script >
451+ </body >
452+ </html >
453+
454+ ```
455+
360456### 8. ** SwapText**
361457
362458A text swapping effect where letters animate by sliding in.
@@ -384,6 +480,12 @@ import SwapText from "@/components/animatios/SwapText";
384480 - ` speed ` (optional): Animation speed (default: ` 1 ` ).
385481 - ` className ` (optional): Custom CSS classes.
386482
483+ ### Using Cdn
484+
485+ ``` html
486+
487+ ```
488+
387489### 9. ** SwingText**
388490
389491Creates a swinging animation for each letter.
0 commit comments