Elegant Example of CSS Variable

Last modified date


This a clean way to drag an element as well as the best use case I’ve seen for CSS variables.

Updating a CSS Variable with JavaScript

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.