0

Is it possible for javascript to change SASS properties
I have already tried using javascript to manipulate the DOM, but it still doesn't work

Example:

HTML:

<div id="thing1"></div>

SASS

#thing1
    display: none
    width: 40vw
    height: 40vh;
    background-color: red

Javascript

document.getElementById("thing1").style.display = "block"

Can someone show me how to make this work

Ilo
  • 1
  • 3

0 Answers0