I was wondering if someone can help me or know a way to do this.
Is there a way to anchor link to a page that has a Hype component implemented and when clicked on the anchor link, a specific timeline would play based on the anchorlink?
For example, when a user sees a hyperlink somewhere online and when that user clicks on that link, it would direct him or her to a specific part of the page where the Hype component sits and then it would play a specific timeline.
I apologize if this isn't very clear but any help would be greatly appreciated!
For linking to a timeline, is this a button where the Hype animation is already embedded or is this a link to a new webpage where the animation is embedded?
The basic code for a button outside of Hype which you want to control a HYpe embed looks like this:
<button type="button" onclick ="HYPE.documents['scenes-transitions'].showSceneNamed('Scene2',HYPE.documents['scenes-transitions'].kSceneTransitionPushRightToLeft);">
Show Scene 2 (Push Right to Left)
</button>
Hi Daniel, the specific hyperlink will direct the user to a page with the Hype component embedded on the middle of the page. But while the link directly takes the user to the Hype component on the middle of the web page, the component also needs to play a specific timeline.
Would something like this be very complicated to set up? I'm sure it's doable by all the wizards in this forum
You have some non hype webpage, with a link
The link can be on any webpage on the internet and be used to take the user to your hype webpage somewhere else on the internet
You want the link to have a hash/anchor.
The Hype page will play a timeline depending on the anchor.
Or
you have a single webpage with a hype project embeded on it.
On this single webpage you also have links that you want the user to click to start some timelines on the embeded hype project
if the former then I think my answer will work for you. The hash will take the user to the correct page with the embed. But so long as the Hype project is not emebeded as an iframe. The hype project should see the location.
If the latter then you would need to look at what danial is saying.
I have added a couple of buttons so you can test while previewing.
The buttons ids are used in the test to add an anchor to the previews location. This is just to simulate someone coming to your page.
I have not tested anything outside of a preview...