Skip to content

About

Javascript30 - Day Three - Update CSS variables with JS

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

CSS Variables and JS

Javascript30 - Day Three - Update CSS variables with JS

Lessons learned

  • how to create and call CSS variables
  • how to access CSS variables with JS
  • how to update CSS variables with JS

Changes that weren't in tutorial

  • Apply width, height and box-sizing to image to prevent it getting larger when padding is changed
  • Add touchmove event in script to accommodate touchscreens

About

Javascript30 - Day Three - Update CSS variables with JS

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages