Created
July 18, 2017 16:00
-
-
Save jamct/0023a3ff025392f8525cbb2ce863bf8d to your computer and use it in GitHub Desktop.
A-Frame Demo: Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>A-Frame-Demo 3</title> | |
<meta name="description" content="Animation"> | |
<meta charset="utf-8"> | |
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-sphere color="yellow" radius="0.5"> | |
<a-animation | |
attribute="position" | |
from="-5 0 -5" | |
to="5 0 -5" | |
dur="4000" | |
direction="alternate" | |
repeat="indefinite" | |
easing="ease"> | |
</a-animation> | |
</a-sphere> | |
</a-scene> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment