-
-
Notifications
You must be signed in to change notification settings - Fork 4
Hype Timelines
Max Ziebell edited this page Jul 11, 2020
·
2 revisions
hypeDocument.goToTimeInTimelineNamedAndTriggerAction = function(timeInSeconds, timelineName){
var seconds = Math.floor(timeInSeconds);
var frames = Math.round(((timeInSeconds - seconds) * 30)) / 30;
var direction = this.currentDirectionForTimelineNamed(timelineName);
var playing = this.isPlayingTimelineNamed(timelineName);
if (!playing) this.continueTimelineNamed(timelineName, direction , true);
this.goToTimeInTimelineNamed(seconds + frames, timelineName);
if (!playing) this.pauseTimelineNamed(timelineName);
}
- Choose another topic from the sidebar
- Visit the topic index
- Return to the welcome page
- Learn about contributing
- Consider making an one-time donation
- Visit the landing page for this project
- Accessibility in Hype
- Quick iterations as the secret to progress
- Using querySelector
- Test an elements class name using classList and contains
- Including external files and Hype Extensions
- Fetching hypeDocument from within a rectangle
- Extend the functionality of Hype using Export Scripts
- Using external editors
- Embedding Hype documents into third-party services
- Accessing external APIs from Hype Previews
- Manually include resources in document head
- Manipulating scene height
- Extension template