-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding video or html content into the body #470
Comments
@charlesanim |
Please let me know if this works for you! |
Thanks for the response, So I'm trying to pass a And render Lottie a animation using the id. But it doesnt seem to work. I even tried to place a html5 video in there but nothing worked. Please what am I doing wrong? #Help. Thanks |
@charlesanim without seeing your code, I wouldn't know. You can pass raw html in as text. For example: text: `<p>Hi!</p>` |
Ok, I'll push my code to a repo for you to check out. but I was trying to and once that renders, I target the ID with Lottie to render the animation in that element. Please checkout lottie here, Lottie by Airbnb |
@charlesanim here is an example using |
Your text has to be a string, so you would want
|
Thank you, I will check it out and get back to you. Thanks much. |
Is there any way to modify or inject a video object or html content or even customize whats in the steps body. Like the replace the text key with an image key or video.
I've tried every method but none seems to work. Thoughts?
See code below.
shepherd.addStep('health', { title: 'Health Team', text: 'Pariatur fugiat proident nisi fugiat enim laboris qui dolore exercitation sint enim magna velit.', attachTo: { element: '.step-4', on: 'left' }, buttons: [{ action: shepherd.back, classes: 'shepherd-button-secondary', text: 'Back' }, { action: shepherd.next, text: 'Next' }] });
The text was updated successfully, but these errors were encountered: