@needle-tools/image-3d 0.1.0-canary.1795017957.935e022 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -42,6 +42,20 @@ The browser chooses the file, and the 3D view uses that same file. The `w` value
42
42
 
43
43
  To enhance a whole `<picture>`, put `data-img-3d` on the `<picture>` instead of its `<img>`.
44
44
 
45
+ ## Auto-rotate a capture
46
+
47
+ Add `auto-rotate` to `<img-3d>` for a slow rotation, or set a signed speed
48
+ in radians per second. The default is 0.3 rad/s. A negative speed reverses
49
+ direction. Use `data-auto-rotate` on an enhanced native image or picture.
50
+
51
+ ```html
52
+ <img-3d src="./model.webp" auto-rotate="-.2"></img-3d>
53
+ <img data-img-3d data-auto-rotate src="./model.webp" alt="Product">
54
+ ```
55
+
56
+ Rotation waits for the capture, pauses while hidden, and stops when the
57
+ viewer is used. Reduced-motion preferences disable it.
58
+
45
59
  ## Control the view with JavaScript
46
60
 
47
61
  You can also enhance an image already on the page: