https://github.com/theme-next/theme-next-three
JavaScript 3D library for NexT.
https://github.com/theme-next/theme-next-three
module theme-next three
Last synced: 11 months ago
JSON representation
JavaScript 3D library for NexT.
- Host: GitHub
- URL: https://github.com/theme-next/theme-next-three
- Owner: theme-next
- License: mit
- Created: 2017-12-31T10:38:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T08:18:16.000Z (about 6 years ago)
- Last Synced: 2024-02-23T21:37:34.700Z (over 2 years ago)
- Topics: module, theme-next, three
- Language: JavaScript
- Homepage:
- Size: 233 KB
- Stars: 31
- Watchers: 15
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JavaScript 3D library for NexT
Installation
If you want to use the CDN instead of clone this repo, please jump to the Step 3.
Step 1 → Go to NexT dir
Change dir to **NexT** directory. There must be `layout`, `source`, `languages` and other directories:
```sh
$ cd themes/next
$ ls
_config.yml crowdin.yml docs gulpfile.js languages layout LICENSE.md package.json README.md scripts source
```
Step 2 → Get module
Install module to `source/lib` directory:
```sh
$ git clone https://github.com/theme-next/theme-next-three source/lib/three
```
Step 3 → Set it up
Enable module in **NexT** `_config.yml` file:
```yml
three_waves: true
OR
canvas_lines: true
OR
canvas_sphere: true
```
**And, if you wants to use the CDN, then need to set:**
```yml
vendors:
...
three: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three.min.js
three_waves: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/three-waves.min.js
canvas_lines: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/canvas_lines.min.js
canvas_sphere: //cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/canvas_sphere.min.js
```
Update
```sh
$ cd themes/next/source/lib/three
$ git pull
```