mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<html>
|
|
<head>
|
|
<title>Animation Tests</title>
|
|
<style>
|
|
.ball-container {
|
|
position: absolute;
|
|
top: 200px;
|
|
left: 50px;
|
|
border: 1px solid gray;
|
|
width: 300px;
|
|
height: 51px;
|
|
}
|
|
.ball {
|
|
position: absolute;
|
|
width: 50px;
|
|
height: 50px;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="ball-container">
|
|
<div class="ball"></div>
|
|
</div>
|
|
|
|
<div style="position: absolute; top: 300px; left: 50px;">
|
|
|
|
<div class="red square" style="position:absolute; width:100px; height:100px; background:red; top: 0; left: 0;"></div>
|
|
<div class="green square" style="position:absolute; width:100px; height:100px; background:green; top: 0; left: 100px;"></div>
|
|
<div class="blue square" style="position:absolute; width:100px; height:100px; background:blue; top: 0; left: 200px;"></div>
|
|
|
|
</div>
|
|
|
|
<div style="position: absolute; top: 400px; left: 50px;">
|
|
|
|
<div class="yellow square2" style="position:absolute; width:100px; height:100px; background:yellow; top: 0; left: 0;"></div>
|
|
<div class="purple square2" style="position:absolute; width:100px; height:100px; background:purple; top: 0; left: 100px;"></div>
|
|
<div class="maroon square2" style="position:absolute; width:100px; height:100px; background:maroon; top: 0; left: 200px;"></div>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
<input type="range" (input)="progress($event)" value="0" min="0" step="0.001" max="1" style="width:200px">
|
|
</p>
|
|
|
|
<p>
|
|
<button primary (click)="play($event)">Play</button>
|
|
<button primary (click)="pause($event)">Pause</button>
|
|
</p>
|
|
|
|
</body>
|
|
</html>
|