B
B
boga-net2018-05-23 21:56:26
JavaScript
boga-net, 2018-05-23 21:56:26

How to use jQuery (or something else) to change a variable in SASS?

There is a variable in the CSS file (in a SASS file, to be more precise) that sets some parameters that need to be changed using the input range or whatever. How can this be implemented?

<input type="range" step="1" max="10" value="3" id="wrapWidth">


$width: 666px

Is there access to such variables? in CSS a lot of things depend on this variable to wrap all the code in js

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-05-23
@rim89

https://medium.com/@_bengarrison/accessing-and-mod...
drive variables to :root and change them via .style.setProperty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question