Loading...
.title {
opacity: calc((100cqw - 300px) / 300px);
}.title {
opacity: progress(100cqw, 300px, 600px);
}progress() returns the position of the container width between '300px' and '600px' as a number, which works directly as opacity.
progress() returns a plain number.calc() where a length is needed.progress() is unsupported.A plain number that shows where the value lies between the start and end, with 0 at the start and 1 at the end.
clamp() limits a value to a range. progress() tells where a value sits inside a range, as a number.