Streaming live at 10am (PST)

HTML5 Canvas scrolling

I implemented this <canvas> custom code into my project. It seems to be working for the initial hero section but I only got it to work when both the canvas and the hero section are fixed. The canvas disappears if any of this is changed. This is preventing me from adding additional sections. What am I missing here?

Here is the read-only link to the project
https://preview.webflow.com/preview/digitalsauce?utm_medium=preview_link&utm_source=designer&utm_content=digitalsauce&preview=4c05f29e88d17bd5c26809c801f36abe&mode=preview

Turns out I need to target the <canvas> HTML element itself and not the css selector .canvas

<style> canvas { position: absolute; z-index: -1; top: 0px; width: 100%; } </style>

1 Like