An open API service indexing awesome lists of open source software.

https://github.com/9am/arc-ball

A small Web Component enables arcball 3D view for everything inside.
https://github.com/9am/arc-ball

3d arcball css css-transform perspective preserve-3d web-component

Last synced: 3 months ago
JSON representation

A small Web Component enables arcball 3D view for everything inside.

Awesome Lists containing this project

README

        


arc-ball-logo

<arc-ball>


A small Web Component enables arcball 3D view for everything inside.




GitHub


npm


npm


npm bundle size


Inspired by wonderful demos[^1] made by Bartosz Ciechanowski, and a great paper[^2] written by Ken Shoemake, this is a nice little tool for someone who like to create 3D models with CSS transform.

## Demo

Go to the [Home page](https://9am.github.io/arc-ball/).

arc-ball-demo-0
arc-ball-demo-3
arc-ball-demo-4
arc-ball-demo-2
arc-ball-demo-1
arc-ball-demo-5

## Usage

Include via CDN(e.g. unpkg) or Download a copy

```html

preserve-3d CSS transform elements or anything you want

```

```html


```

```html


escape the 3d control

```

```html


```

Or import the ESM version

```html

import 'https://unpkg.com/@9am/arc-ball/dist/index.es.js';

```

Or install via npm

```sh
npm install @9am/arc-ball
```

## Documentation

`width` `height` and `perspective` can be controlled by the style of the `` element.

## License
[MIT](LICENSE)

[^1]: [Bartosz Ciechanowski Blog](https://ciechanow.ski/)
[^2]: [ARCBALL: A User Interface for Specifying Three-Dimensional Orientation Using a Mouse](https://graphicsinterface.org/wp-content/uploads/gi1992-18.pdf)