Our shop section is coming soon, watch for updates! Shop now
Guide

Grid-to-Fullscreen Animations

Learn how to integrate a mind-bending Three.js animation in your Webflow project. Guide by CJHersh
June 20, 2019

This guide has been developed by CJhersh.

https://www.cjhersh.com
https://webflow.com/cjhersh

Creating Grid-to-Fullscreen Animations with Three.js in Webflow

Learn how to integrate a mind-bending Three.js animation in your Webflow project.


Original Author: Daniel Velasquez

More Technical Details: Here  


In a future tutorial, I’ll go into more detail about the custom CSS and Javascript - specifically, how you can further integrate and customize with Webflow’s native interactions. Make sure the CSS settings for each element match that found in the demo project.



  1. Create layout in Webflow
  • “Main” - This will be your top-level wrapper. In the element settings menu, make sure you change the tag from the default ‘div’ to ‘main’.
  • “app” - This is where the Three.js canvas will render after publishing the project.
  • “grid” - The grid will hold your grid items. If we expand the “grid” div, you will see three grid items. Each grid item contains the following:
  • 2 embedded thumbnail images (small and large)

In order to bypass CrossOrigin issues, it is imperative that your image embed code includes the attribute crossorigin="anonymous" as well as a “?” after the image URL.

  • The grid items caption
  • “fullview” - This holds the content for each item’s fullscreen state (title, link), as well as the button trigger to transition back to thumbnail.
  1. Add custom CSS
  1. Add custom Javascript scripts and code


  1. Publish!

CJ Hersh
Details
Grid-to-Fullscreen Animations
Learn how to integrate a mind-bending Three.js animation in your Webflow project. Guide by CJHersh
Preview ProjectClone Project

Discussion

Other Guides

Guide
Social Share Button
Waldo
Guide
Interactions & fullPage JS
John Marsh
News, Updates & Clonables

Join the newsletter for updates

Join 600+ webflow community members.
Welcome to the club. Cool stuff coming your way.
Oops! Something went wrong while submitting the form.