Jump to content
Search Community

DaCodeWiz

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by DaCodeWiz

  1. I'm working on a project currently with Vite. I'm using scrollTrigger on a component so that it animates a scale on a video in the background while also animating in some text in the foreground. I originally used Gatsby with the project and was able to set the #root { position: fixed; } in my index.scss but now that i'm Vite I can't do that otherwise i'm unable to scroll altogether. I don't know think it's worth the time of completely recreating three sections in codePen to achieve the same effect but I will post screenshots with the code since i'm fairly certain it's just a positioning issue with my css. 

    This is the Reel.jsx

    code1.thumb.png.1b469397d1d087d747d26f21ab1ff5b8.png

    Below is the index.scss

     code2Medium.png.c500f515c918586c3073be17a4376afa.png

    Below this is the Reel.scss

    code3Medium.png.8f756b77dd98f27e6d84998a39b8e514.png

    If the images and everything are too much, I understand and feel free to remove the post. Otherwise, any help is super appreciated since this has been buggy for hours now.

×
×
  • Create New...