DEV Community

Discussion on: CSS 3D - Scrolling on the z-axis

Collapse
 
nikkiloef profile image
Nikki Loef • Edited

I'm trying to make a version with my own content.
But this is not working out.

I added the code of the cards to my CSS.

  Card1
  Card2

But in my .js I now still have the link to the 'film file', if I remove that, my own content shows but the scrolling does not work anymore. Can you tell me what I'm doing wrong?

Collapse
 
vinceumo profile image
Vincent Humeau

Hey, do you have a link to a repo so I can have a look ?

Collapse
 
nikkiloef profile image
Nikki Loef

Hee Vincent,
It is online at nikkiloef.com
Thank you for taking a look!

Thread Thread
 
vinceumo profile image
Vincent Humeau

You need to change your js so you look into the length of your cards instead of the films. You should remove axios as well 😉.

jsbin.com/catogajise/3/edit?html,c...

Thread Thread
 
nikkiloef profile image
Nikki Loef

Thank you for the help!
And for sharing the knowledge in the first place.