0%

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:

1
2
3
$ 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:

1
$ 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:

1
2
3
4
5
three_waves: true
OR
canvas_lines: true
OR
canvas_sphere: true

And, if you wants to use the CDN, then need to set:

1
2
3
4
5
6
vendors:
...
three: //cdn.jsdelivr.net/gh/theme-next/[email protected]/three.min.js
three_waves: //cdn.jsdelivr.net/gh/theme-next/[email protected]/three-waves.min.js
canvas_lines: //cdn.jsdelivr.net/gh/theme-next/[email protected]/canvas_lines.min.js
canvas_sphere: //cdn.jsdelivr.net/gh/theme-next/[email protected]/canvas_sphere.min.js

Update

1
2
$ cd themes/next/source/lib/three
$ git pull