Basic use
example.css
@function --gap(--n) {
result: calc(var(--n) * 0.5rem);
}
Custom functions package reusable CSS calculations that accept parameters and return values.
@function --gap(--n) {
result: calc(var(--n) * 0.5rem);
}@function --gap(--n) {
result: calc(var(--n) * 0.5rem);
}@function --gap(--n) {
result: calc(var(--n) * 0.5rem);
}Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful