Skip to content

Instantly share code, notes, and snippets.

@magicspon
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magicspon/b101ed86c17f2e9fc523 to your computer and use it in GitHub Desktop.
Save magicspon/b101ed86c17f2e9fc523 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@function resp-font($min, $max, $start, $stop) {
$m: $min * 1px;
$s: $start * 1px;
@return calc( #{$m} + (#{$max} - #{$min}) * ( (100vw - #{$s}) / ( #{$stop} - #{$start}) ));
}
h1 {
font-size: resp-font(16,48,970,1600);
}
h1 {
font-size: calc( 16px + (48 - 16) * ( (100vw - 970px) / ( 1600 - 970) )); }
<h1>I'm text yeah</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment