Skip to content

Instantly share code, notes, and snippets.

@jamct
Created Jul 18, 2017
Embed
What would you like to do?
A-Frame Demo: Animation
<!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