Skip to content

davidburchakov/react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

About

react portfolio

Set up commands

install npm

npm install

run localhost

npm run dev

deploy

npm run deploy

or

npm run deploy -- -m ""

Notes:

Some resources and forums that helped me built the website

How to deploy react project to github-pages

https://github.com/gitname/react-gh-pages

Bruno Simon's Threejs course

you can find his course here: https://hacksnation.com/

Video on Scroll

Playing video on scroll

I'm using gsap ScrollTrigger react version of developedbyed tutorial (he uses gsap ScrollMagic and TweenMax which are outdated)

https://www.youtube.com/watch?v=wLUJ9VNzZXo&t=12s

As @anormalking pointed out in the comments, it is recommended to change the framerate of videos.

For anyone having trouble with freezing playback with your own videos: make sure that you divide 1000/the framerate of the video AND have the video with a proper codec, here's a script that may help, you have to have FFmpeg installed, and open your terminal/powershell:

ffmpeg -i yourInputVideo.mp4 -movflags faststart -vcodec libx264 -crf 23 -g 1 -pix_fmt yuv420p theOutputNameOfTheVideo.mp4

Install ffmpeg:

sudo apt install ffmpeg

Trim a video using ffmpeg:

ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output1.mp4

Import gsap with cdn in react:

https://greensock.com/forums/topic/26390-gsap-cdn-in-react/

// in .html file
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
// in .jsx file
const gsap = window.gsap;
const ScrollTrigger = window.ScrollTrigger;
gsap.registerPlugin(ScrollTrigger)

Gsap usage with react - gsap.context:

https://greensock.com/forums/topic/34981-pin-section-problem-in-react/

How to use Drei Views

https://codesandbox.io/s/bp6tmc?file=/src/App.js

Canvases Vs. Views

https://discourse.threejs.org/t/canvases-vs-views/55858

defer model rendering

pmndrs/react-three-fiber#769 react-intersection-observer

About

react portfolio

Resources

Stars

Watchers

Forks

Packages

No packages published