Socket
Socket
Sign inDemoInstall

@csstools/postcss-exponential-functions

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csstools/postcss-exponential-functions

Use pow(), sqrt(), hypot(), log(), exp() exponential functions in CSS


Version published
Weekly downloads
824K
increased by2.79%
Maintainers
3
Weekly downloads
 
Created

What is @csstools/postcss-exponential-functions?

@csstools/postcss-exponential-functions is a PostCSS plugin that allows you to use exponential functions in your CSS. This can be particularly useful for creating smooth transitions and animations, as well as for responsive design calculations.

What are @csstools/postcss-exponential-functions's main functionalities?

Exponential Functions in CSS

This feature allows you to use exponential functions directly in your CSS. The `exp(base, exponent)` function calculates the base raised to the power of the exponent.

/* Input CSS */
.element {
  width: exp(2, 3)px; /* 2^3 = 8px */
  height: exp(3, 2)px; /* 3^2 = 9px */
}

/* Output CSS */
.element {
  width: 8px;
  height: 9px;
}

Logarithmic Functions in CSS

This feature allows you to use logarithmic functions in your CSS. The `log(value, base)` function calculates the logarithm of the value with the specified base.

/* Input CSS */
.element {
  width: log(8, 2)px; /* log base 2 of 8 = 3px */
  height: log(9, 3)px; /* log base 3 of 9 = 2px */
}

/* Output CSS */
.element {
  width: 3px;
  height: 2px;
}

Other packages similar to @csstools/postcss-exponential-functions

Keywords

FAQs

Package last updated on 31 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc