@@ -483,7 +483,35 @@ import SwapText from "@/components/animatios/SwapText";
483483### Using Cdn
484484
485485``` html
486-
486+ <!DOCTYPE html>
487+ <html lang =" en" >
488+ <head >
489+ <meta charset =" UTF-8" />
490+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
491+ <title >Swap Text Animation</title >
492+ <style >
493+ body {
494+ font-family : Arial , sans-serif ;
495+ display : flex ;
496+ justify-content : center ;
497+ align-items : center ;
498+ height : 100vh ;
499+ background-color : #f0f0f0 ;
500+
501+ }
502+ </style >
503+ </head >
504+ <body >
505+
506+ <h1 class =" SwapText" ></h1 >
507+
508+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/swap_text.js" ></script >
509+ <script >
510+ const animatio = new SwapText ([" Swap" , " Animation" ], 1 );
511+ </script >
512+ </body >
513+ </html >
514+
487515```
488516
489517### 9. ** SwingText**
@@ -513,6 +541,40 @@ import SwingText from "@/components/animatios/SwingText";
513541 - ` speed ` (optional): Animation speed (default: ` 1 ` ).
514542 - ` className ` (optional): Custom styles.
515543
544+ ### Using Cdn
545+
546+ ``` html
547+ <!DOCTYPE html>
548+ <html lang =" en" >
549+ <head >
550+ <meta charset =" UTF-8" />
551+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
552+ <title >Swing Text Animation</title >
553+ <style >
554+ body {
555+ font-family : Arial , sans-serif ;
556+ display : flex ;
557+ justify-content : center ;
558+ align-items : center ;
559+ height : 100vh ;
560+ background-color : #f0f0f0 ;
561+
562+ }
563+ </style >
564+ </head >
565+ <body >
566+
567+ <h1 class =" SwingText" ></h1 >
568+
569+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/swingtext.js" ></script >
570+ <script >
571+ const animatio = new SwingText ([" Swap" , " Animation" ], 1 );
572+ </script >
573+ </body >
574+ </html >
575+
576+ ```
577+
516578### 10. ** TwinkleText**
517579
518580Letters twinkle in with a rotating or sliding effect.
@@ -542,6 +604,40 @@ import TwinkleText from "@/components/animatios/TwinkleText";
542604 - ` direction ` (optional): ` 'left' ` or ` 'right' ` .
543605 - ` className ` (optional): Custom styles.
544606
607+ ### Using Cdn
608+
609+ ``` html
610+ <!DOCTYPE html>
611+ <html lang =" en" >
612+ <head >
613+ <meta charset =" UTF-8" />
614+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
615+ <title >Twinkle Text Animation</title >
616+ <style >
617+ body {
618+ font-family : Arial , sans-serif ;
619+ display : flex ;
620+ justify-content : center ;
621+ align-items : center ;
622+ height : 100vh ;
623+ background-color : #f0f0f0 ;
624+
625+ }
626+ </style >
627+ </head >
628+ <body >
629+
630+ <h1 class =" TwinkleText" ></h1 >
631+
632+ <script src =" https://cdn.jsdelivr.net/gh/ahkamboh/animatio@main/cdns%40latest/twinkletext.js" ></script >
633+ <script >
634+ const animatio = new TwinkleText ([" Twinkle" , " Animation" ], 0.4 , " left" )
635+ </script >
636+ </body >
637+ </html >
638+
639+ ```
640+
545641### 11. ** WordPopText**
546642
547643Pops in each word with a scaling effect.
@@ -569,6 +665,12 @@ import WordPopText from "@/components/animatios/WordPopText";
569665 - ` speed ` (optional): Animation speed (default: ` 1 ` ).
570666 - ` className ` (optional): Custom styles.
571667
668+ ### Using Cdn
669+
670+ ``` html
671+
672+ ```
673+
572674### 12. ** SlitText**
573675
574676SlitText in each word .
0 commit comments