Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

less variables vs css variables

They are very different, main differences:
- CSS vars cascade
- CSS vars trigger repaint on change
- CSS vars can be manipulated with JS
- Less vars are more lightweight and will work regardless of browser
 
PREVIOUS NEXT
Tagged: #variables #css #variables
ADD COMMENT
Topic
Name
9+2 =