Browse Source

Examples: Added additional notes in lottie example.

Mr.doob 4 years ago
parent
commit
5b166e5017
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/webgl_loader_texture_lottie.html

+ 4 - 4
examples/webgl_loader_texture_lottie.html

@@ -34,8 +34,6 @@
 				scene = new THREE.Scene();
 				scene.background = new THREE.Color( 0x222222 );
 
-				//
-
 				const loader = new LottieLoader();
 				loader.load( 'textures/lottie/24017-lottie-logo-animation.json', function ( texture ) {
 
@@ -48,8 +46,6 @@
 
 				} );
 
-				//
-
 				renderer = new THREE.WebGLRenderer();
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
@@ -63,6 +59,10 @@
 
 			function setupControls( animation ) {
 
+				// Lottie animation API
+				// https://airbnb.io/lottie/#/web
+
+				// There are a few undocumented properties:
 				// console.log( animation );
 
 				const scrubber = document.getElementById( 'scrubber' );