-
Notifications
You must be signed in to change notification settings - Fork 0
Working with Timeline
bapquad edited this page Feb 20, 2022
·
3 revisions
[Home] > Working with Timeline
This content we learn how to create and use a timeline.
Element5JS provide you a method like as timeline5.Create()
for creating the timeline.
let timeline = timeline5.Create({
name: 'leftToRight',
keyframes: [
{time: '0', style: {transform: 'translateX(100%)'}},
{time: '100', style: {transform: 'translateX(0%)'}},
],
});
You need to specify the name of timeline and modify the keyframes of the timeline for finish the animation timeline.
After you had created timeline, you would like to play it.
$.create("h2#top")
.text("Timeline")
.addedBy($.GetBody())
.Play(timeline);
Bapquad Games since 2015
- Get Started
- Working with DOM
- Constructing the StyleSheet
- Working with Sprite
- Working with Timeline
- Working with Scroller
- Working with Camera
- Working with Microphone
- Making the Ajax Request
- Opening a Websocket
- Working with Storage
- Checking User Agent
- Working with GPS
- Working with Router
- Playing the Stream