Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@csstools/postcss-exponential-functions

Package Overview
Dependencies
Maintainers
3
Versions
16
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

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
908K
decreased by-2.16%
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 15 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