How do I embed a Tahrikit motion in my site with an iframe?
The "copy embed code" button gives you a ready iframe to paste into any page. An iframe keeps the motion separate from your site's code, so there are no CSS clashes.
Steps
- Open the motion card you like in the library.
- Click the "copy embed code" button.
- Paste the code where it should show: an HTML page or an HTML block in your site.
- Set the width and height (or a 16:9 ratio) and give it a descriptive title.
- Keep loading="lazy" so the motion loads only when it is near the screen.
The code
HTML
<iframe src="https://motion.velloxhq.com/en/embed/11.html" width="560" height="260" style="border:0;max-width:100%" loading="lazy" title="Smooth Eased Metric Counter"></iframe>
This is the exact format the button produces (the example is motion #11, the number counter). The number changes per motion, and the language sets the path: /embed/ for Arabic and /en/embed/ for English.