ive updated the script with the classlist toggle. Not sure why this didn’t work in the first place. This is the only reason that i’ve went the if route to begin with .
Oh I get it. the toggle isn’t working because I already have a margin left property as a default… this is driving me crazy
I FIXED IT
I got the classlist . toggle working.
I had to remove the default margin left property that I had on the original div so that when I add the class it adds the a margin that becomes visible
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.