jsdk-offical
Version:
JSDK is the most comprehensive TypeScript framework, like JDK.
86 lines (80 loc) • 3.13 kB
HTML
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-Control" content="no-cache,no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>JSDK Example</title>
<link rel="shortcut icon" href="#" />
<link href="anim.css" rel="stylesheet" type="text/css" />
<script src="/jsdk/dist/jscore.js?_=1"></script>
<script src="/jsdk/dist/jsdk-config.js"></script>
</head>
<body>
<div class="content">
<section class="pane demos">
<header>
<h2 class="demos-title">Frame ANIMATION</h2>
</header>
<div id="demo" class="demo">
<div class="demo-content">
<div class="line">
<div class="a5m" style="margin:0 auto;"></div>
</div>
<div class="line controls">
<button class="play">Play</button>
<button class="pause">Pause</button>
<button class="stop">Stop</button>
<button class="replay">Replay</button>
</div>
</div>
</div>
</section>
<section class="pane demo-info">
<header>
<h2>Controls</h2>
</header>
<div class="info-output">
<p>Controls a running animation.
</p>
<table>
<thead>
<tr>
<td>method</td>
<td>description</td>
<td>example</td>
</tr>
</thead>
<tbody>
<tr>
<td>play</td>
<td>play a new motion or continue to play paused motion</td>
<td>anim.play()</td>
</tr>
<tr>
<td>pause</td>
<td>pause the current motion</td>
<td>anim.pause()</td>
</tr>
<tr>
<td>stop</td>
<td>stop the current motion</td>
<td>anim.stop()</td>
</tr>
<tr>
<td>replay</td>
<td>stop current motion and play a new motion</td>
<td>anim.replay()</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
<script src="../env.js"></script>
<script src="frame_controls.js"></script>
</body>
</html>