Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Scrollable pages with GSAP and WebGI - Custom Threejs Render
Rating: 4.0 out of 5(79 ratings)
1,138 students

Scrollable pages with GSAP and WebGI - Custom Threejs Render

Learn to create immersive 3D object experiences using WEBGi and GSAP with ScrollTrigger in less than 1 hour
Last updated 11/2024
English

What you'll learn

  • Learn to create experiences with Threejs and GSAP's scrollTrigger
  • Master the use of scroll-based animations
  • Learn how to integrate the use of WEBGi in your projects to achieve more realism
  • Integrate 3D models into your design and create pages that are rich and immersive
  • Free source code available!

Course content

4 sections18 lectures2h 52m total length
  • What are we going to create?0:54

    The project that we will create together will be this landing page, which shows a drill as a product launch, showing the differentiators in an interactive way, telling a story as the user progresses with the Scroll.


    Using the same knowledge of this course, you will be able to develop many other pages, like those demonstrated in the video. They were created using the same concepts applied in this course, modifying the model and design. Some of these experiences won an honorable mention award on the awwwards website.


    Links to these pages can be found in the description link. Take the opportunity to get inspired and have your own ideas because the possibilities are endless.

  • Using WEBGi editor to configure the 3D model and its integration into the design9:00

    [IMPORTANT UPDATE]

    WebGI changed recently and now you can access the editor by clicking on the "EDITOR" button on the top menu bar. The click on the "latest version" button isn't working anymore.


    In this class we will create the page design, using a base design file that contains the idea of what we are going to create. We will use the WEBGi Editor to load a chosen free 3D model and go through all the main options on how to use the editor to configure the 3D model for the experience we are going to create.


    The editor allows saving, inside the file that will be exported, all the configurations that we make inside it. So you don't have to worry about hundreds of lines of code to achieve the same result. We'll load this template into the API's provided boilerplate and everything will work as expected.

  • Installing the boilerplate to WEBGi and its dependencies7:09

    Now that you have the 3D model configured the way you want to use it on your page, in this class, we are going to install the WEBGi boilerplate and configure the dependencies. Here, it is important that you have NODE.JS installed on your computer. If you haven't already, you can access the page linked to this class and install the version corresponding to your operating system.


    Let's take the opportunity to modify the basic settings of the supplied Boilerplate so that it works on full screen.

  • Exporting the assets and creating the first page section with HTML and CSS15:12

    Let's use the html page and css that we already have in the default file to modify it to the layout we need. Let's see how to create the main block of the page and how to merge the elements using basic css that fills the entire available height of the screen for each section.

  • Creating the other sections of the page and preparing for the animations9:57

    We will continue to configure the other blocks of the page with basic CSS and HTML, creating an HTML element that will be the background of the second section and that will pass behind the 3D model when scrolling.

  • Installing GSAP, ScrollTrigger, and setting up the first animation10:35
  • Creating the update function for the animation4:29
  • Finally: Using the scroll to control the animation8:08
  • Merging the animations of the html elements with the 3D model6:20
  • Closing and preview of the next lessons0:52

Requirements

  • Basic knowledge of Javascript and having NPM installed

Description

This is a crash course of scrollable experiences with GSAP and WEBGi. WEBGi is a custom threejs renderer that enables you to create realistic results out-of-the-box with great performance. I'll show you how to create interactive pages by embedding 3D models on a page with scroll-based animations.


We will do the entire process together, from creating the page design using Adobe XD and the WEBGi editor to get the images, to implementing the code using a boilerplate provided. We will create all the HTML and CSS together, step by step, until we learn how to install GSAP and configure the animations for each section and find the correct values ​​for each camera position. Next, we'll learn how to merge the 3D animations with the other animations on the page.


The course content is organized as follows:

  • What are we going to create?

  • Using the WEBGi editor to configure the 3D model and its integration into the design

  • Installing the boilerplate to WEBGi and its dependencies

  • Exporting the assets and creating the page with HTML and CSS

  • Creating the other sections of the page and preparing for the animations

  • Setting up the first animation

  • Creating the update function and using the scroll to control the animation

  • How to find the correct camera positions to animate

  • Animating all sections of the page

  • Merging the animations of the HTML elements with the 3D model

  • Performance tweaks and other important tips

  • Final thoughts and considerations


You'll have access to the design created in Adobe XD format, as well as the project's source code, so you can follow along and create your own pages after this course. In addition, you will also have access to ask me questions to help you develop your projects.


The course is suitable for those who already have some experience with Javascript and have Nodejs installed on their computer.

Who this course is for:

  • For developers who have some prior knowledge of JavaScript and who want to evolve their knowledge in using Threejs to create Scroll experiences
  • For Designers who want to know the possibilities of using 3D in the browser
  • For people who are new to Threejs and want to better understand how to integrate 3D with a web page