Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/AndrewPrifer/CodropsCameraFlyThroughTutorial


https://github.com/AndrewPrifer/CodropsCameraFlyThroughTutorial

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Animate a camera fly-through on scroll using Theatre.js and React Three Fiber

Display a 3D scene, and fly a camera through it as the user scrolls, using Theatre.js and React Three Fiber, in 50 lines of code.

https://user-images.githubusercontent.com/2991360/218591424-2bc3f476-6288-4999-941e-da5263064d31.mp4

[Article on Codrops](https://tympanus.net/codrops/?p=70449)

[Demo](http://tympanus.net/Development/CameraFlyThrough/)

## Installation

Install dependencies:

```
yarn
```

Compile the code for development and start a local server:

```
yarn dev
```

Create the build:

```
yarn build
```

## Credits

- 3D model: [Low poly environment](https://sketchfab.com/3d-models/low-poly-environment-2e18c1baa9164093ad2e99e0a904363a) by [BigPo](https://sketchfab.com/BigPo)

## Misc

Follow Andrew Prifer: [Twitter](https://twitter.com/AndrewPrifer), [GitHub](https://github.com/AndrewPrifer)

Follow Theatre.js: [Twitter](https://twitter.com/theatre_js), [GitHub](https://github.com/theatre-js/theatre)

Follow Codrops: [Twitter](http://www.twitter.com/codrops), [Facebook](http://www.facebook.com/codrops), [GitHub](https://github.com/codrops), [Instagram](https://www.instagram.com/codropsss/)

## License

[MIT](LICENSE)

Made with :blue_heart: by [Codrops](http://www.codrops.com)