Skip to content

Instantly share code, notes, and snippets.

@davidicus
Created June 26, 2017 21:21
Show Gist options
  • Save davidicus/129884b81ae7146fb7c1b0cef3d06127 to your computer and use it in GitHub Desktop.
Save davidicus/129884b81ae7146fb7c1b0cef3d06127 to your computer and use it in GitHub Desktop.
Using custom properties to run a ternary operator in css
calc(-1 * var(--panning) + 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment