- Single
themes.tsxfile, ~200 lines.- Flashless (with ssr).
- Typescript.
import React, { useContext, useState } from "react";
// utils| // The class itself is based on the animation helper class in | |
| // https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate | |
| // but I have changed almost everything except for the class name and the update function. | |
| import * as THREE from 'three'; | |
| export default class Animation { | |
| constructor(scene, animations) { | |
| this.scene = scene; | |
| this.animations = animations; |
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |