🔥Build awesome 3D landing page for Apple iPhone using ReactJS + ThreeJS + GSAP

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 124

  • @CodeBucks
    @CodeBucks  2 года назад +2

    --------------------------------------------------------------------------------
    Starter CODE👨‍💻:
    ➡ Link 💚: github.com/codebucks27/Apple-iphone-3d-landing-page-starter-Code
    Final CODE👨‍💻:
    ➡ Link 💚: github.com/codebucks27/3D-Landing-page-for-Apple-iPhone
    Buy me a coffee and Support this channel🥰:
    www.buymeacoffee.com/CodeBucks
    --------------------------------------------------------------------------------

  • @SimPwear84
    @SimPwear84 2 года назад +11

    Dude! You're a beast! I was starting to worry since you have been quiet for some time. Your uploads always excite me. You're a very talented developer and glad to finally hear you talking the steps over the video. Nice project and thanks for sharing your knowledge 🔥

    • @CodeBucks
      @CodeBucks  2 года назад +1

      I'm glad that you liked it. Also sorry for the late upload I'll try my best to upload more awesome content😄

  • @SF-tv2so
    @SF-tv2so 9 месяцев назад +3

    Man, you are the best . Your talent in frontend and the project that you made are really incredible .I hope you enjoyed it.

    • @CodeBucks
      @CodeBucks  9 месяцев назад +2

      Thanks for your kind words! Yes I did enjoy creating these videos.

  • @prashlovessamosa
    @prashlovessamosa Год назад +1

    19 k people like you deserve more subs man.

    • @CodeBucks
      @CodeBucks  Год назад

      Thanks for the appreciation😇

  • @naheeddeedar2792
    @naheeddeedar2792 Год назад +1

    awesome video but facing many issues at the beginning flex and animation not working do you resolve it

    • @CodeBucks
      @CodeBucks  Год назад

      Sure let me know what issues you are facing.

    • @naheeddeedar2792
      @naheeddeedar2792 Год назад

      var(- -xxx) not apply

    • @naheeddeedar2792
      @naheeddeedar2792 Год назад

      I'm using variables which you defined in styleComponent but they are not @@CodeBucks applying the tags

  • @kennethornieta2375
    @kennethornieta2375 8 месяцев назад +1

    This is really impressive!

    • @CodeBucks
      @CodeBucks  8 месяцев назад

      I'm glad you liked it😇

  • @deimovprojects
    @deimovprojects Год назад +1

    Hello friend, thanks for the tutorial.. i cant enter to the result deploy link...

    • @CodeBucks
      @CodeBucks  Год назад

      Did you mean, "You cannot deploy your project?"

  • @alfa8515
    @alfa8515 2 года назад +1

    Bro this is fantastic🔥 the greatest build ever saw , can u try next on unique e-commerce design ??

    • @CodeBucks
      @CodeBucks  2 года назад

      Thanks and sure I will try new design for Ecom. 😄

  • @digivibesai
    @digivibesai 2 года назад +1

    You are awesome! So much to learn from you! May god bless you 🙏

    • @CodeBucks
      @CodeBucks  2 года назад

      Glad to hear that 😄

  • @WebSpyder32
    @WebSpyder32 Год назад +1

    hey on pinning the section on scroll trigger use the quotes page doesn't load at first until I scroll down to the herosection and then come back again

    • @CodeBucks
      @CodeBucks  Год назад

      Use "markers: true" and check the intersection between the browser and the Quote page. If the intersection is right then check the z-index for hero page.

  • @developer_hadi
    @developer_hadi 2 года назад +1

    Stunning animations, keep going 🔥

    • @CodeBucks
      @CodeBucks  2 года назад +1

      Thank you! Will do!😄

  • @josephomotade864
    @josephomotade864 2 года назад

    Glad you back
    Would love something with reactjs and tailwindcss . Thanks

    • @CodeBucks
      @CodeBucks  2 года назад

      Sure thing! I will use tailwind for my future videos. 😉

  • @narutoxboku1006
    @narutoxboku1006 Год назад +2

    thank you for this vedio

  • @alfa8515
    @alfa8515 2 года назад +1

    U are just killer programmer 👾 ~

  • @paschalkings8184
    @paschalkings8184 2 года назад +2

    I appreciate you too much 💗

    • @CodeBucks
      @CodeBucks  2 года назад

      Thanks for the application 🍻

  • @dimi9431
    @dimi9431 Год назад +1

    the website shows a blank white screen. i deployed to netlify. your build does the same thing. any ideas?

    • @CodeBucks
      @CodeBucks  Год назад +1

      Hey, I have checked local build and it's working fine but somehow it's not working in the netlify. I have tried with vercel and it worked you can check it from here: apple-iphone14.vercel.app/
      I don't know why there is problem in netlify build.

  • @emmanuelbabawale7216
    @emmanuelbabawale7216 2 года назад +1

    Thanks, nice work bro

    • @CodeBucks
      @CodeBucks  2 года назад

      Glad you liked it 😄

  • @code.design
    @code.design 10 месяцев назад +1

    Love the typo in your thumbnail!

    • @CodeBucks
      @CodeBucks  10 месяцев назад

      Oh thanks for letting me know!😂 I'll update it.

    • @code.design
      @code.design 10 месяцев назад

      ​@@CodeBucks Cheers, I did a full year of proof reading, and since then, my eye simply locks on those things (obviously except my own work) Good luck!

    • @CodeBucks
      @CodeBucks  10 месяцев назад

      @@code.design Your keen eye for proofreading sounds like a superskill. Cheers!

  • @dhruvvaghani4613
    @dhruvvaghani4613 Год назад +1

    love it bro ❤❤

  • @deathdefier45
    @deathdefier45 Год назад +1

    Thank you so much for this

    • @CodeBucks
      @CodeBucks  Год назад

      I'm glad you liked it 😊

  • @maya7
    @maya7 7 месяцев назад +1

    Hi , I get error in the cmd when I run gltfjx scene.gltf , tho i tried new version and the old , what should I do?

    • @CodeBucks
      @CodeBucks  7 месяцев назад

      What error are you getting? You could also try their website from here: gltf.pmnd.rs/

  • @Dhanushsaji
    @Dhanushsaji Год назад

    Great video! However, there is a potential issue that you may come across. The iPhone model is set to position fixed, and its size is based on the viewport size. If you add any buttons in that section, they may not be clickable.

    • @CodeBucks
      @CodeBucks  Год назад

      Can you tell me any specific section in which you faced the problem?

  • @margooo1511
    @margooo1511 2 года назад +1

    Really cool project! Thank you so much for that!! :)
    Also I wanted to ask about element: shouldn't we only use it once on the page?

    • @CodeBucks
      @CodeBucks  Год назад +1

      Hey, I'm glad you liked this. No, there is no technical requirement to use h1 tag only for once in a single page. If you are using HTML5 then you can use multiple h1 tags.

    • @margooo1511
      @margooo1511 Год назад +1

      @@CodeBucks didn't know that! Thank you for explanation! 😊

    • @margooo1511
      @margooo1511 Год назад +1

      @@CodeBucks Hello! Can you help with project a little please?
      I have problem n the Color section... My scroll animation works only when I scroll the page from bottom to top, but not when I scroll from top to bottom :( when I scroll from top to bottom there's no any color section at all :(

    • @CodeBucks
      @CodeBucks  Год назад

      @@margooo1511 Hey,
      make sure you have added the scrub property in the gsap/scrolltrigger code.

    • @pease7227
      @pease7227 Год назад

      @@margooo1511 Hi, I also have this exact issue, how did you resolve it please?

  • @mahbubmorshed9527
    @mahbubmorshed9527 2 года назад

    start follow your tutorial

  • @WebSpyder32
    @WebSpyder32 Год назад +1

    hey do you have a discord community or patreon where enthusiasts who are currently learning from ur videos can share their doubts and resolve them amongst themselves

    • @WebSpyder32
      @WebSpyder32 Год назад +1

      also is there a way to scene.rotation value in real time

    • @CodeBucks
      @CodeBucks  Год назад

      hey, right now there is no such thing available but I'm considering to create one soon.

    • @CodeBucks
      @CodeBucks  Год назад

      @@WebSpyder32 What do you mean by real-time? Can you explain what you are trying to achieve?

  • @hassaantahir3861
    @hassaantahir3861 2 года назад +1

    Superrrr doooper awesome 👍

    • @CodeBucks
      @CodeBucks  2 года назад +1

      Thanks🤩

    • @hassaantahir3861
      @hassaantahir3861 2 года назад +1

      @@CodeBucks bro make some awesome portfolios also using react, GSAP with cool animations
      Something unique like nothing on RUclips

    • @CodeBucks
      @CodeBucks  2 года назад +1

      @@hassaantahir3861 Thank you so much for the appreciation it means a lot.

    • @hassaantahir3861
      @hassaantahir3861 2 года назад +1

      @@CodeBucks no worries bro

  • @sololmos5995
    @sololmos5995 2 года назад +1

    wowww so usefull!!
    thanks!

    • @CodeBucks
      @CodeBucks  2 года назад

      Glad you liked it 😄

  • @namkhelavan
    @namkhelavan 2 года назад +2

    three.js is mandetory for this project?

    • @CodeBucks
      @CodeBucks  2 года назад +1

      Yes but not directly threejs,.Instead for react I have used react-three-fiber and react-three-drei.

  • @Rahul-bn9vq
    @Rahul-bn9vq 2 года назад

    Nice video mate, but everytime i installed style-components i have to written them completely.i didnt get shortcut or anything and it feels like i wrote a story in orange color not a code.please help me out

    • @CodeBucks
      @CodeBucks  2 года назад

      Install this extension in VScode => marketplace.visualstudio.com/items?itemName=styled-components.vscode-styled-components. Now you can easily write CSS in styled components and you will get different color as well.

  • @АлександрМелянюк-ц9ю

    Just a bomb!!! Thank you!

    • @CodeBucks
      @CodeBucks  2 года назад

      I'm glad that you liked it😄

  • @ChristopherHester-ig4iy
    @ChristopherHester-ig4iy Год назад +1

    the build is working perfect on desktop but the iphone animation wont render on mobile

    • @CodeBucks
      @CodeBucks  Год назад

      Hey, I have checked it again in my device and it's rendering the iPhone model but if you try to use older mobile phones or smartphones with less capability in terms of processor and ram then you might face delay or glitch in rendering this model. You can optimize this by using web workers to load this 3d model.

    • @omarmendoza5972
      @omarmendoza5972 Год назад

      @@CodeBucks I have an iPhone 13 Pro Max and only the very small model appears on my mobile, but on my Android smartphone, it runs fine, how can I solve it?

  • @hassaantahir3861
    @hassaantahir3861 2 года назад +1

    Brother can you make a website builder clone ( like WordPress or wix) with node and react.. that do all the basic stuff that is needed to create a website...
    It will be very grateful

    • @CodeBucks
      @CodeBucks  2 года назад +1

      Hey, creating website builder takes lot of time then simple websites.

    • @hassaantahir3861
      @hassaantahir3861 2 года назад

      @@CodeBucks not fully 100 like WordPress but with only core functionalities ...
      You can make a series of 4-5 videos .. 😇

  • @soyelchicodelanus8471
    @soyelchicodelanus8471 2 года назад +1

    You are my hero

    • @CodeBucks
      @CodeBucks  2 года назад

      Thanks for the appreciation. It means a lot😄

  • @parthpathak9600
    @parthpathak9600 Год назад +1

    I am getting this error export 'DataTexture3D' (imported as 'DataTexture3D') was not found in 'three'

    • @CodeBucks
      @CodeBucks  Год назад

      Can you tell me in which component are you getting the error?

  • @harshsrivastava4811
    @harshsrivastava4811 Год назад

    resolution of rendered 3d model is very low quality please help

    • @CodeBucks
      @CodeBucks  Год назад

      Hey, Refer this documentation and especially the "Performance scaling" section:
      docs.pmnd.rs/react-three-fiber/advanced/scaling-performance

    • @harshsrivastava4811
      @harshsrivastava4811 Год назад +1

      @@CodeBucks ok thanks

  • @pease7227
    @pease7227 Год назад

    Hi... please for my coloSection, the animation is not working in the normal top to bottom direction but it works in the reverse direction(that is it works from bottom to top). What can I do please?

    • @CodeBucks
      @CodeBucks  Год назад

      Hey, make sure you have scrub in the scrolltrigger. Add scrub:1 and check it again.

    • @dimi9431
      @dimi9431 Год назад +1

      @@CodeBucks I am having same issue, and this did not solve it. I know it's someting small that im overlooking. any tips?

    • @CodeBucks
      @CodeBucks  Год назад

      @@dimi9431 Hey, I'd suggest try different values in parameters of gsap scrolltrigger. Try 1 for scrub. Also checkout the documentation of the gsap.

  • @ushmakumari2526
    @ushmakumari2526 2 года назад

    You are just alien D:>>> 👽

  • @mahbubmorshed9527
    @mahbubmorshed9527 2 года назад

    really bro Thanks

  • @hermulyakevin1507
    @hermulyakevin1507 2 года назад +2

    at 2:08:00
    it says 'el' is not defined
    what should I do ?

    • @CodeBucks
      @CodeBucks  2 года назад +2

      Check your code again and see if you have used forEach loop properly on elements. Also log the elements ("li") and see if you can get the list of all li elements.

    • @hermulyakevin1507
      @hermulyakevin1507 2 года назад +1

      it works :)

  • @secenory2473
    @secenory2473 Год назад

    When i try to change the position of model, it only turns around itself. Anyone know how can i solve this ? 1:11:00

    • @CodeBucks
      @CodeBucks  Год назад

      Try to go ahead with the tutorial and still if you face the issue then change the height of the container.

    • @secenory2473
      @secenory2473 Год назад +1

      @@CodeBucks Thank you. After i check the final code i solve the problem but now when i try to add the modal into color section , it says Failed to parse URL from ./scene.glb and it also fails building process. I couldn't find any solution for this.
      const { nodes, materials } = useGLTF("./scene.glb");
      materials.Body.color.set(color);

    • @CodeBucks
      @CodeBucks  Год назад

      @@secenory2473 Use useLayoutEffect to change the material like shown in the final code repo. Also, it's just "/scene.gltf" so remove the dot.

    • @secenory2473
      @secenory2473 Год назад +1

      @@CodeBucks Actually i did exactly the same things but it doesn't work either. I used Nextjs and tailwind nevertheless i don't think its related. gltfjsx usage may change because after i transformed the object it created "scene.glb" file not gltf.

    • @CodeBucks
      @CodeBucks  Год назад

      @@secenory2473 If you are using next.js then you must add media files in the public directory otherwise it won't be able to fetch the file.

  • @mahbubmorshed9527
    @mahbubmorshed9527 2 года назад

    when I run gltfjsx scene.gltf it makes type error: fetch failed, solution

    • @CodeBucks
      @CodeBucks  2 года назад

      Make sure you use npx and not npm and also you should be in the repository where the model files are situated.

    • @mahbubmorshed9527
      @mahbubmorshed9527 2 года назад +1

      @@CodeBucks No result bro 12 hours of stack not solving error

    • @CodeBucks
      @CodeBucks  2 года назад

      @@mahbubmorshed9527 Hey can you send me screenshot of error on my email @ codebucks27@gmail.com

    • @CodeBucks
      @CodeBucks  2 года назад

      @@mahbubmorshed9527 I checked the error it is happening because you might have to latest version of the NodeJS you can use nvm tool for windows to install the old version of NodeJs and use it. I have Node 17.2.0 and the gltfjsx is working in this version of the NodeJs.

    • @mahbubmorshed9527
      @mahbubmorshed9527 2 года назад +1

      @@CodeBucksI want to use new version of nodejs. how we can solve this issue, or alternatively what we can import our model ?

  • @deepak8586
    @deepak8586 2 года назад +1

    Are you on patreon as well??

    • @CodeBucks
      @CodeBucks  2 года назад

      Hey, Do you mean in terms of community/membership?

    • @deepak8586
      @deepak8586 2 года назад +1

      @@CodeBucks yes!

    • @CodeBucks
      @CodeBucks  2 года назад +1

      Okay. No right now my focus is on creating more cool content so I haven't started anything regarding membership.

  • @anshsingh9739
    @anshsingh9739 2 года назад +1

    really great project to learn something new, would do this project after lab minors 🙂 (29) sept 🥲, before that complete pending projects 🥲

    • @CodeBucks
      @CodeBucks  2 года назад

      I'm glad that you liked this project.😄

  • @takecontrol554
    @takecontrol554 Год назад +1

    🎉🎉🎉somebody has the same error??? Can't resolve 'three' in node module🎉🎉🎉 just answer yes or no

    • @CodeBucks
      @CodeBucks  Год назад

      Hey, can you tell me in which component you are getting this error?

    • @takecontrol554
      @takecontrol554 Год назад +1

      @@CodeBucks yep. I'm using android to develop and when i try import anything from react three drai, for instance import { useGLTF } from "@react-three/drei"; i get errors

    • @CodeBucks
      @CodeBucks  Год назад

      @@takecontrol554 Okay. Have you matched the final code with your own code?

    • @takecontrol554
      @takecontrol554 Год назад

      @@CodeBucks sure. i soppose this library is not working on android devices

    • @takecontrol554
      @takecontrol554 Год назад +1

      thanks god and my mind! i solved this by deploying project to vercel and just pushed all changes i did. As to say, on my localhost the project das not work, but if i deploy it everything is ok))